提交 b049cd24 编写于 作者: J jurgen

SSH tunnel preferred auth option added

上级 5ba61781
Major: Major:
S/DB selector combo works as crap error: S/DB selector combo works as crap
Multiple tabs - tab removed after execute
SOCKS proxy, HTTP proxy SOCKS proxy, HTTP proxy
1. Browse data by foreign keys 1. Browse data by foreign keys
......
...@@ -119,6 +119,8 @@ public class SSHTunnelImpl implements DBWTunnel { ...@@ -119,6 +119,8 @@ public class SSHTunnelImpl implements DBWTunnel {
session = jsch.getSession(sshUser, sshHost, sshPortNum); session = jsch.getSession(sshUser, sshHost, sshPortNum);
session.setConfig("StrictHostKeyChecking", "no"); session.setConfig("StrictHostKeyChecking", "no");
session.setConfig("PreferredAuthentications",
privKeyFile != null ? "publickey" : "password");
session.setUserInfo(ui); session.setUserInfo(ui);
session.connect(); session.connect();
try { try {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册