# ssh
安装ssh
apt install openssh-server -y
开启ssh
systemctl start sshd
自启ssh
systemctl enable sshd
root登陆
修改sshd_config配置文件
vim /etc/ssh/sshd_config
PermitRootLogin yes # 把#号去掉并后面prohibit-password改为yes
PasswordAuthentication yes # 把#号去掉
重启ssh
systemctl restart sshd