问题:
VMware虚拟机中的Centos7无法SSH登陆,重启SSH服务和虚拟机皆无效,在本地输入命令ssh 127.0.0.1也无法登陆,提示Read from socket failed: Connection reset by peer。
解决:
# ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key # ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key # systemctl restart sshd
时间: 2024-10-11 11:25:58