Linux开启ssh密码登陆,root用户远程登陆

开启 ssh 密码登陆

1
sudo sed -i 's/^#\?PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config

重启 ssh

1
sudo systemctl restart sshd

root 用户远程登陆

找到 PermitRootLogin ,修改为 PermitRootLogin yes

1
sudo vim /etc/ssh/sshd_config

重启 ssh

1
sudo systemctl restart sshd
网站总访客数:Loading
网站总访问量:Loading
使用 Hugo 构建
主题 StackJimmy 设计
-->