Spring Integration / JSch: Auth fail

时光怂恿深爱的人放手 提交于 2019-12-01 10:54:03

As discussed in the other question you cite, the smoking gun is this...

20:29:30,650 INFO  [com.jcraft.jsch] (task-scheduler-6) Authentications that can continue: publickey,keyboard-interactive,password
20:29:30,651 INFO  [com.jcraft.jsch] (task-scheduler-6) Next authentication method: publickey
20:29:30,678 INFO  [com.jcraft.jsch] (task-scheduler-6) Authentications that can continue: password

Pk authorization is failing; when it's successful it doesn't fall back to pw...

INFO: SSH_MSG_SERVICE_ACCEPT receivedINFO: Authentications that can continue: publickey,keyboard-interactive,password
INFO: Next authentication method: publickey
INFO: Authentication succeeded (publickey).

I just ran the sftp sample with the sample key file from github and got the identical results that you did; I then copied my id_rsa file (like you) and it works fine. If you are using eclipse, be sure to F5 (refresh) the src/main/resources after copying the key file, otherwise it won't use the file on the current filesystem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!