ubuntu开启root ssh直连

  sre

1_xUVAyKZj7lnhNoaD4fSRew.jpeg
sudo su 改密码
sshd_config修改:

#PermitRootLogin without-password
PermitRootLogin yes

service ssh restart

One Reply to “ubuntu开启root ssh直连”

  • LoginGraceTime 2m
    #PermitRootLogin prohibit-password
    PermitRootLogin yes
    StrictModes yes
    #MaxAuthTries 6
    #MaxSessions 10
    
    

LEAVE A COMMENT

Captcha Code