-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
是否可以在登录的时候设置StrictHostKeyChecking属性? #64
Comments
暂时没有支持,目前逻辑应该是等价于 BRs |
谢谢您的回复,PreferredAuthentications这个参数的设置应该也没有吧。ssh登录的时候会弹出Kerberos身份验证提示,在jsch里可以通过设置put("PreferredAuthentications", "publickey,keyboard-interactive,password")来解决弹出提示的问题 |
对,我们还没做 Brs. |
期待以后的版本中能有这个支持,谢谢 |
您的应用场景是需要连接到只接受gssapi认证的ssh服务器吗? BRs |
应用场景中不需要连接gssapi认证的服务器。 |
理解了,是需要在认证过程中提供回调函数来输入用户名密码,当然目前也可以在建立session前先行询问用户名密码作为workaround BRs |
在用jsch的时候,最开始就放弃了publickey的方式,采用了keyboard-interactive和password登录方式,但有个问题,每个ssh服务器需要确认是否可以用password认证登录(如果可以就用password登录方式,否则用keyboard-interactive方式登录),并提前做好标志。后来发现在jsch设置一个("PreferredAuthentications", "publickey,keyboard-interactive,password"),然后直接按password的登录方式即可,很方便 |
如题,谢谢
The text was updated successfully, but these errors were encountered: