SSH Public/Private Key Server Settings

  • I recommend you change the following settings (wherever they appear in the file), from

    PermitRootLogin yes
    RSAAuthentication yes
    #PasswordAuthentication yes
    UsePAM yes
    	    

    to

    PermitRootLogin no
    RSAAuthentication no
    PasswordAuthentication no
    UsePAM no
    	    

  • Note the use of UsePAM. On modern Linux, SSH password authentication occurs if UsePAM is yes, even if PasswordAuthentication is set to no, for historical reasons.