debian ssh登录root
1、xshell无法登录root

2、修改/etc/ssh/sshd_config
如果没有/etc/ssh/sshd_config 就安装一下
apt install openssh-server
然后修改/etc/ssh/sshd_config
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
vi /etc/ssh/sshd_config
添加一行:PermitRootLogin yes

3、重启ssh服务
/etc/init.d/ssh restart
4、可以使用终端工具登录root了

时光如水,总是无言。若你安好,便是晴天。
本文来自博客园,作者:OceanWaves,转载请注明原文链接:https://www.cnblogs.com/OceanWaves/p/17312447.html

浙公网安备 33010602011771号