第一步,安装服务
sudo apt install openssh-server
第二步,开启root登录,并设置密码认证
1、编辑 /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes
2、重启
旧
service ssh restart
新
systemctl restart ssh
第三步,开机自动启动
systemctl enable ssh
sudo apt install openssh-server
1、编辑 /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes
2、重启
旧
service ssh restart
新
systemctl restart ssh
systemctl enable ssh