企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
禁用root登录、禁用密码登录,并重启ssh服务 vim /etc/ssh/sshd_config cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys(放在普通用户的家目录下) PasswordAuthentication yes 修改为:(禁用密码) PasswordAuthentication no PermitRootLogin no # 禁止root用户登录