跳到主要内容

开放root用户远程SSH登录

#允许远程登录
sed -i '/PermitRootLogin/ a PermitRootLogin yes' /etc/ssh/sshd_config

#重启ssh服务
systemctl restart sshd