> For the complete documentation index, see [llms.txt](https://cgo.gitbook.io/my-it-blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cgo.gitbook.io/my-it-blog/linux/debian-10.1-an-zhuang-wan-hou-qi-yong-root-deng-lu.md).

# Debian 10.1 启用root帐户登录ssh

## 一、修改

先用其它帐户登录ssh，然后su到root输入密码登录(如果是在本地登录的可直接用root登录进系统，不用切换用户)，修改/etc/ssh/sshd\_config，\
将#PermitRootLogin prohibit-password\
修改为PermitRootLogin yes

## 二、重启服务

执行如下命令重启ssh服务：/etc/init.d/ssh restart\
即可以root用户登录ssh。
