Commit 5120a83e authored by ck's avatar ck
Browse files

Maemo: Fix access rights for remote .ssh directory.

Task-number: QTCREATORBUG-1673
parent 11549acd
......@@ -355,7 +355,8 @@ void MaemoSettingsWidget::deployKey()
}
m_ui->deployKeyButton->disconnect();
const QString command = QLatin1String("test -d .ssh || mkdir .ssh && echo '")
const QString command = QLatin1String("test -d .ssh "
"|| mkdir .ssh && chmod 0700 .ssh && echo '")
+ key + QLatin1String("' >> .ssh/authorized_keys");
m_keyDeployer = new MaemoSshRunner(currentConfig().server, command);
connect(m_keyDeployer, SIGNAL(finished()),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment