Ubuntu 18.04 enables ssh login for the root account

1.System version

free18.04

2. Operation steps

  1. Change "#PermitRootLogin prohibit-password" to yes
sudo vim /etc/ssh/sshd_config

   
   
    
    
  • 1
  1. Find the #PermitRootLogin line and modify it to:
PermitRootLogin yes

   
   
    
    
  • 1
  1. Restart ssh service
sudo systemctl restart sshd.service

   
   
    
    
  • 1

Call it a day

1.System version

free18.04

2. Operation steps

  1. Change "#PermitRootLogin prohibit-password" to yes
sudo vim /etc/ssh/sshd_config

   
   
  
  
  • 1
  1. Find the #PermitRootLogin line and modify it to:
PermitRootLogin yes

   
   
  
  
  • 1
  1. Restart ssh service
sudo systemctl restart sshd.service

   
   
  
  
  • 1

Call it a day

Guess you like

Origin blog.csdn.net/tangsiqi130/article/details/132609190