8wDlpd.png
8wDFp9.png
8wDEOx.png
8wDMfH.png
8wDKte.png

ubuntu2204 ssh无法登录 学习教程

小莫理 29天前 21

 
sudo apt-get install openssh-server -y
 
systemctl enable ssh #开机启动
systemctl restart ssh #重启ssh
systemctl status ssh #查看ssh状态
 
sudo vim /etc/ssh/sshd_config
 
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
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
 
 
sudo systemctl restart sshd
Ubuntu 22.04下使用SSH 登录提示no hostke
最新回复 (0)
    • 小白资源网
      2
        立即登录 立即注册 
返回
发新帖