SSH默认未开启,需要手动开启,并设置为开机启动
┌──(king㉿20210325)-[~]
└─$ sudo vi /etc/ssh/sshd_config
将#PasswordAuthentication no的注释去掉,并且将NO修改为YES 可能默认是yes
将#PermitRootLogin ……的注释去掉
┌──(king㉿20210325)-[~]
└─$ /etc/init.d/ssh restart
Restarting ssh (via systemctl): ssh.service==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
重新启动“ssh.service”需要认证。
Authenticating as: king,,, (king)
Password: 输入密码
==== AUTHENTICATION COMPLETE ===
.
┌──(king㉿20210325)-[~]
└─$ sudo update-rc.d ssh enable |