Maemo: Fix access rights for remote .ssh directory.

Task-number: QTCREATORBUG-1673
This commit is contained in:
ck
2010-06-18 12:48:52 +02:00
parent 11549acdbe
commit 5120a83ee9

View File

@@ -355,7 +355,8 @@ void MaemoSettingsWidget::deployKey()
} }
m_ui->deployKeyButton->disconnect(); 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"); + key + QLatin1String("' >> .ssh/authorized_keys");
m_keyDeployer = new MaemoSshRunner(currentConfig().server, command); m_keyDeployer = new MaemoSshRunner(currentConfig().server, command);
connect(m_keyDeployer, SIGNAL(finished()), connect(m_keyDeployer, SIGNAL(finished()),