forked from qt-creator/qt-creator
Maemo/MeeGo: Don't make .ssh/authorized_keys executable
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
@@ -74,7 +74,7 @@ void MaemoKeyDeployer::deployPublicKey(const SshConnectionParameters &sshParams,
|
|||||||
SLOT(handleKeyUploadFinished(int)));
|
SLOT(handleKeyUploadFinished(int)));
|
||||||
const QByteArray command = "test -d .ssh "
|
const QByteArray command = "test -d .ssh "
|
||||||
"|| mkdir .ssh && chmod 0700 .ssh && echo '"
|
"|| 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);
|
m_deployProcess->run(command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user