Rootop 服务器运维与web架构

Please login as the user “centos” rather than the user “root”.

就想用root登陆系统!
普通用户登陆以后,执行 sudo -i ,然后编辑 /root/.ssh/authorized_keys 文件,找到
no-port-forwarding,no-agent-forwarding,no-X11-forwarding,command=”echo ‘Please login as the user \”centos\” rather than the user \”root\”.’;echo;sleep 10″
删掉它!
当然ssh服务里也要设置允许root登陆。

原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/5115.html

作者:Venus

服务器运维与性能优化

评论已关闭。