1.安装ssh服务 sudo apt-get update sudo apt-get install ssh 2.vi /etc/ssh/sshd_config //修改ssh的配置文件 将#PasswordAuthentication no的注释去掉,并且将no修改为yes 将#PermitRootLogin prohibit-password的注释去掉,将prohibit-password改为yes PasswordAuthentication yes PermitRootLogin yes 或echo -e …