在ssh目录下编写config文件,执行 vi ~/.ssh/config 添加以下内容 Host ... KexAlgorithms +diffie-hellman-group1-sha1 #加密算法可自定义哦!