📜  ubuntu 禁用 ssh root - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:38.510000             🧑  作者: Mango

代码示例1
#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