虚拟机网络设置以及shh登录

虚拟机网络设置以及shh登录

 

hostonly网卡

 

 

 

无需别的网卡共享

网卡1

 

 

 

 

 

网卡2

 

 

 

SecureCRT SSH连接报错问题解决

 

转自:https://blog.csdn.net/dszgf5717/article/details/126521618

 

错误:Key exchange failed. No compatible key exchange method. The server supports these

 

 

解决办法:

HostKeyAlgorithms ssh-dss,ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512

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

 

 

 

ssh 允许密码登录

Vim /etc/ssh/sshd_config

 

PasswordAuthentication yes

PermitRootLogin yes

 

systemctl restart ssh.service

posted @ 2024-12-14 15:34  河北大学-徐小波  阅读(11)  评论(0编辑  收藏  举报