1. 先配置好shell登陆密码 2.登陆shell进入服务器,修改sshd_config 3.启动下面3项,保存后重启ssh服务 sudo systemctl restart ssh 4.登陆默认用户 远程登陆成功