1、修改/etc/ssh/sshd_config配置文件,添加jdk1.6支持的加密算法,如下:
KexAlgorithms +diffie-hellman-group1-sha1
service sshd restart
2、使用 jsch-0.1.52 jar包
1、修改/etc/ssh/sshd_config配置文件,添加jdk1.6支持的加密算法,如下:
KexAlgorithms +diffie-hellman-group1-sha1
service sshd restart
2、使用 jsch-0.1.52 jar包