phpdesigner连接ftp时Server does not support diffie-hellman-group1-sha1 for keyexchange的问题

rt
Ubuntu 一般只默认安装openssh_client,需要对Ubuntu进行ssh需要安装openssh_server
最新版本openssh_server在ubuntu默认用7.2版本的,在7.2版本其官网声明已经Disabled diffie-hellman-group1-sha1 by default

解决办法来自链接

sudo vim /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
sudo service ssh restart

ok了

发布了16 篇原创文章 · 获赞 6 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/weixin_39938635/article/details/88675231