forked from qt-creator/qt-creator
Maemo: Take user-supplied private key file into account.
Reviewed-by: kh1
This commit is contained in:
@@ -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").
|
||||
|
Reference in New Issue
Block a user