- 安装ssh-server:
sudo apt-get install ssh-server - 允许root账号通过ssh连接
编辑/etc/ssh/sshd_config文件,找到PermitRootLogin without-password
并在下边添加
PermitRootLogin yes
然后
service ssh restart或service ssh reload
sudo apt-get install ssh-server/etc/ssh/sshd_config文件,找到PermitRootLogin without-passwordPermitRootLogin yesservice ssh restart或service ssh reload