Skip to content

Commit 67dde84

Browse files
committed
Specify SSH authentication methods
Solves upload to particularly configured SSH servers which wrongly chooses Kerberos auth method
1 parent 68f6184 commit 67dde84

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arduino-core/src/cc/arduino/packages/uploaders/SSHUploader.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ public boolean uploadUsingPreferences(File sourcePath, String buildPath, String
110110
SSHClientSetupChainRing sshClientSetupChain = new SSHConfigFileSetup(new SSHPwdSetup());
111111
session = sshClientSetupChain.setup(port, jSch);
112112

113+
session.setConfig("PreferredAuthentications", "publickey,keyboard-interactive,password");
114+
113115
session.setUserInfo(new NoInteractionUserInfo(PreferencesData.get("runtime.pwd." + port.getAddress())));
114116
session.connect(30000);
115117

0 commit comments

Comments
 (0)