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:
parent
3c16ac025a
commit
9d676a71c8
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user