天天看点

openssh 7.5 jsch 工具链接报错Algorithm negotiation fail

1、修改/etc/ssh/sshd_config配置文件,添加jdk1.6支持的加密算法,如下:

      KexAlgorithms +diffie-hellman-group1-sha1

      service sshd restart

2、使用 jsch-0.1.52 jar包