Ubuntu 一般只默認安裝openssh_client,需要對Ubuntu進行ssh需要安裝openssh_server
最新版本openssh_server在ubuntu默認用7.2版本的,在7.2版本其官網聲明已經Disabled diffie-hellman-group1-sha1 by default
如果還使用低版本的Poderosa之類的,默認還在用diffie-hellman-group1-sha1。
查看openssh_client允許的keyexchange方法可用ssh -Q key
查看當前openssh_server允許的keyexchange方法可用 sshd -T | grep kex 查看server允許的keyexchange
可以選擇升級Poderosa,或者降級安裝openssh_client 6.6左右版本
如果降級后還不支持,可以進入修改 /etc/ssh/sshd_config
添加
KexAlgorithms diffie-hellman-group1-sha1,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
Ciphers 3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr
然后運行
ssh-keygen -A 來重新生成所有鑰匙
之后service ssh restart重啟sshd
|
新聞熱點
疑難解答