Maemo/MeeGo: Don't make .ssh/authorized_keys executable

Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
Thorbjørn Lindeijer
2011-02-04 16:16:01 +01:00
parent eb433c8087
commit 488249c05c

View File

@@ -74,7 +74,7 @@ void MaemoKeyDeployer::deployPublicKey(const SshConnectionParameters &sshParams,
SLOT(handleKeyUploadFinished(int)));
const QByteArray command = "test -d .ssh "
"|| mkdir .ssh && chmod 0700 .ssh && echo '"
+ key + "' >> .ssh/authorized_keys && chmod 0700 .ssh/authorized_keys";
+ key + "' >> .ssh/authorized_keys && chmod 0600 .ssh/authorized_keys";
m_deployProcess->run(command);
}