root@ubuntu-virtual-machine:~# apt install -y openssh-server
root@ubuntu-virtual-machine:~# service sshd start
root@ubuntu-virtual-machine:~# vim /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
root@ubuntu-virtual-machine:~# service sshd restart
原文地址: https://blog.csdn.net/DT_FlagshipStore/article/details/126051811
|