因为安全等因素,默认的centos系统镜像禁止root和密码登录,因此如果需要root用户登录需要进行如下操作
修改ssh配置文件
sudo vi /etc/ssh/sshd_config
PasswordAuthentication yes
PubkeyAuthentication yes
配置修改完成后,重启 SSH 服务:
sudo systemctl restart sshd
绑定外部地址
远程连接
ssh root@10.0.28.225
作者:张旭 创建时间:2025-05-14 14:09
最后编辑:张旭 更新时间:2025-05-14 14:15
最后编辑:张旭 更新时间:2025-05-14 14:15