Commit 533d64c4 authored by ck's avatar ck
Browse files

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

Reviewed-by: kh1
parent 043695b7
......@@ -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").
Supports Markdown
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