apt-get install openssh-servervim /etc/ssh/sshd_config 将PermitRootLogin no一行改为PermitRootLogin yesservice ssh restart