Maemo: Take user-supplied private key file into account.

Reviewed-by: kh1
This commit is contained in:
ck
2009-12-03 13:01:45 +01:00
parent 043695b7cf
commit 533d64c4b9

View File

@@ -1134,7 +1134,10 @@ const QStringList AbstractMaemoRunControl::options() const
const bool usePassword =
devConfig.authentication == MaemoDeviceConfigurations::DeviceConfig::Password;
const QLatin1String opt("-o");
return QStringList() << opt
QStringList optionList;
if (!usePassword)
optionList << QLatin1String("-i") << devConfig.keyFile;
return optionList << opt
<< QString::fromLatin1("PasswordAuthentication=%1").
arg(usePassword ? "yes" : "no") << opt
<< QString::fromLatin1("PubkeyAuthentication=%1").