A Digital Life

My Notebook

View My GitHub Profile

  • About
  • 12 July 2018

    Disable Password Login

    by kerner1000

    Make a backup of the current ssh configuration

    Edit /etc/ssh/sshd_confg:

    # diff /etc/ssh/sshd_config /etc/ssh/sshd_config.bak 
    < PasswordAuthentication no
    ---
    > #PasswordAuthentication yes
    

    Restart the ssh server

    sudo service sshd restart
    
    tags: ssh