sudo vim /etc/ssh/sshd_configPort 22 #默认即可,如果有端口占用可以自己修改PasswordAuthentication yes # 允许用户名密码方式登录sudo /etc/init.d/ssh start