Linux开启root用户远程登录
开启 root 账户,给root用户设置密码
sudo passwd root
输入两遍密码
修改配置文件
打开SSH配置文件。
vim /etc/ssh/sshd_config
修改如下参数
- PermitRootLogin no修改为PermitRootLogin yes。
- PasswordAuthentication no修改为PasswordAuthentication yes。
按Esc键,输入:wq保存修改。
重启SSHD服务。
service sshd restart
标签:配置文件,登录,用户,开启,修改,Linux,root
From: https://www.cnblogs.com/ancientlian/p/17218750.html