root@fort:~# uname -a Linux fort 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux root@fort:~# cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 9 (stretch)" NAME="Debian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
建立config文件并添加内容就不再报错可以连接了。
root@fort:~# cat /home/user/.ssh/config Host * SendEnv LANG LC_* # Ciphers 3des-cbc Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc
修改/etc/ssh/ssh_config 文件的三行内容:(取消注释)
GSSAPIAuthentication yes Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc MACs hmac-md5,uhmac-sha1,umac-64@openssh.com,hmac-ripemd160