ubuntu 开启sshd
2023-08-23 本文已影响0人
michael_0x
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