doc/笔记/开启root远程登录Linux-permitrootl...

454 B

title date updated url categories tags
开启root远程登录Linux 2021-04-14 11:38:32.0 2022-09-13 09:40:06.804 /archives/permitrootlogin
Linux
Linux

设置root密码

sudo passwd

修改配置文件sshd_config

sudo vim /etc/ssh/sshd_config

修改这两条并保存

PermitRootLogin yes
PasswordAuthentication yes

重载sshd

sudo systemctl reload sshd

重新连接即可使用root权限远程连接