sudo apt-get udpate
sudo apt-get install openssh-server
config:
sudo vi /etc/ssh/sshd_config
with below config update:
# Authentication:
#LoginGraceTime 2m
#PermitRootLogin prohibit-password
PermitRootLogin yes
#StrictModes yes
MaxAuthTries 10
#MaxSessions 10
enable root passwd:
sudo passwd root
start the sshd service
sudo service ssh restart
网友评论