1.首先进入VNC登录:
2. netstat -tnlp | grep sshd无输出,考虑ssh服务未启用
systemctl status sshd.service查看是否启动
3.vi /etc/ssh/sshd_config
没有文件
apt-get update
apt-get install openssh-server
PermitRootLogin yes
PasswordAuthentication yes
4.systemctl start sshd启用ssh服务
重新用ssh登录,大功告成!
文章来源地址https://uudwc.com/A/aYNvy文章来源:https://uudwc.com/A/aYNvy