ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
禁用root登录、禁用密码登录,并重启ssh服务 vim /etc/ssh/sshd_config cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys(放在普通用户的家目录下) PasswordAuthentication yes 修改为:(禁用密码) PasswordAuthentication no PermitRootLogin no # 禁止root用户登录