Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

ubuntu disable ssh root

#Open the SSH configuration file sshd_config with the text editor vi:
sudo nano /etc/ssh/sshd_config

#In the line PermitRootLogin yes replace the word Yes with the word No.
#Save the file.
#Restart the service.
sudo service ssh restart
 
PREVIOUS NEXT
Tagged: #ubuntu #disable #ssh #root
ADD COMMENT
Topic
Name
5+8 =