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

作者: 站长 上传时间: 浏览: N/A 下载: N/A 格式: N/A 评分: N/A

错误信息

[SFTP] Connection failed : kex error : did not find one of algos diffie-hellman-group1-sha1 in list curve25519-sha256,[email protected],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,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1

保存后重启

service sshd restart

Leave a Comment