Ubuntu 20.4 LST 使用notepad+的SFTP连接报错问题

错误信息

[SFTP] Connection failed : kex error : did not find one of algos diffie-hellman-group1-sha1 in list curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256 for kex algos

解决办法

vi /etc/ssh/sshd_config

注释PermitRootLogin掉# 修改为yes

PermitRootLogin yes

在conf文件末尾添加内容

KexAlgorithms diffie-hellman-group1-sha1,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1

保存后重启

service sshd restart

原文链接:https://xiaohost.com/3683.html,转载请注明出处。
0

评论0

请先