JSchException: Algorithm negotiation fail

前端 未结 10 1963
面向向阳花
面向向阳花 2020-11-27 06:30

I am trying to connect to remote sftp server over ssh with JSch (0.1.44-1) but during \"session.connect();\" I am getting this exception:

com.jcraft.jsch.JS         


        
10条回答
  •  被撕碎了的回忆
    2020-11-27 07:05

    add KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha‌​1 to your sshd_config on the server.

    This worked, but make sure you restart sshd: sudo service sshd restart

提交回复
热议问题