1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00

Specify SSH authentication methods

Solves upload to particularly configured SSH servers which wrongly chooses Kerberos auth method
This commit is contained in:
Martino Facchin 2015-11-25 12:20:16 +01:00
parent 3c16ac025a
commit 9d676a71c8

View File

@ -110,6 +110,8 @@ public class SSHUploader extends Uploader {
SSHClientSetupChainRing sshClientSetupChain = new SSHConfigFileSetup(new SSHPwdSetup());
session = sshClientSetupChain.setup(port, jSch);
session.setConfig("PreferredAuthentications", "publickey,keyboard-interactive,password");
session.setUserInfo(new NoInteractionUserInfo(PreferencesData.get("runtime.pwd." + port.getAddress())));
session.connect(30000);