apt-get update
apt install ssh
nano /etc/ssh/sshd_config
去掉Port和PermitRootLogin的注释,并将PermitRootLogin prohibit-password修改为 PermitRootLogin yes
nano /root/.bashrc
末尾添加:service ssh start
重启reboot
systemctl status ssh
apt-get update
apt install ssh
nano /etc/ssh/sshd_config
去掉Port和PermitRootLogin的注释,并将PermitRootLogin prohibit-password修改为 PermitRootLogin yes
nano /root/.bashrc
末尾添加:service ssh start
重启reboot
systemctl status ssh