Server rebooting after SSH port has locked
Jump to navigation
Jump to search
Server rebooting after SSH port has locked
Step1:please the check ssh service
systemctl status ssh.service
And give below command
sudo sshd -t
It shows the missing privilege directory below the outputs
Missing privilege separation directory: /var/run/sshd
Step2:Please create the directory in sshd and follow the below command
mkdir -p /var/run/sshd
Step3:Give ownership to that directory Please follow the below command
chown root:root /var/run/sshd
Step4:After restarting the ssh
systemctl restart ssh
Step5:Finally this will work on the server and SSH port issue resolve in the server
sudo sshd -t