forked from qt-creator/qt-creator
Fix publickey deployment issue
Qtcreator was unable to create .ssh dir so this will fix it. Task-number: QTCREATORBUG-22591 Change-Id: I11d6f8e0ccc88ff3bff956edb1912e59ab70092d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -68,7 +68,7 @@ void SshKeyDeployer::deployPublicKey(const SshConnectionParameters &sshParams,
|
||||
connect(&d->deployProcess, &SshRemoteProcessRunner::processClosed,
|
||||
this, &SshKeyDeployer::handleKeyUploadFinished);
|
||||
const QString command = "test -d .ssh "
|
||||
"|| mkdir .ssh && chmod 0700 .ssh && echo '"
|
||||
"|| mkdir -p ~/.ssh && chmod 0700 .ssh && echo '"
|
||||
+ QString::fromLocal8Bit(reader.data())
|
||||
+ "' >> .ssh/authorized_keys && chmod 0600 .ssh/authorized_keys";
|
||||
d->deployProcess.run(command, sshParams);
|
||||
|
Reference in New Issue
Block a user