Skip to content
Belier Blog
Go back

Centos7 开启密码登录和 root 用户远程登录

开启密码登录

  1. 编辑配置文件 vi /etc/ssh/sshd_config
    PasswordAuthentication yes
  2. 重启 SSH 服务
    systemctl restart sshd

开启 root 用户远程登录

  1. 编辑配置文件 vi /etc/ssh/sshd_config
    PermitRootLogin yes
  2. 重启 SSH 服务
    systemctl restart sshd


Previous Post
firewall 防火墙常用命令
Next Post
Linux 学习之 SSH