--- title: 开启root远程登录Linux date: 2021-04-14 11:38:32.0 updated: 2022-09-13 09:40:06.804 url: /archives/permitrootlogin categories: - Linux tags: - Linux --- 设置root密码 ``` sudo passwd ``` 修改配置文件**sshd_config** ``` sudo vim /etc/ssh/sshd_config ``` 修改这两条并保存 ``` PermitRootLogin yes PasswordAuthentication yes ``` 重载sshd ``` sudo systemctl reload sshd ``` 重新连接即可使用root权限远程连接