1.ssh -p 10022 root@xxx.xxx.xxx.xxx2.cd etc/ssh/3.vim sshd_config4.打开 PermitRootLogin yes 新增 PasswordAuthentication yes5. service ssh restart