通过xshell连接ubuntu,点击新建文件传输时,弹出一个错误对话框:
检查发现sshd服务是正常开启的,防火墙也没阻止,然后百度发现sshd可能与xshell存在兼容问题
解决方法:
在/etc/ssh/sshd_config文件最后一行增加
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
然后重启sshd服务或重新加载服务配置文件
systemctl restart sshd 或systemctl reload sshd
重新使用xshell连接,就用xftp上传文件啦