SSH Remote Access Authentication Tips

Posted by Planet Malaysia on October 10, 2008

advertisement

My friend was try to setup Linux SSH public key authentication without password and he’s keep getting password prompt. I will not going to go through how to setup SSH public key authentication here and I just would like to share few troubleshoot tips in order to fix the similar problem here:

1. Checking /var/log/messages file
Basically SSH hints are written to “/var/log/messages” file, you should be able to see any error messages here. For an example “Authentication refused: bad ownership or
modes for directory /root cannot set to 775
“. Perhaps you’re require to change /root folder permission to make it work (may apply to other /home folder as well).
Type #chmod 755 /root or #chmod 700 /root can solve authentication problem.

2. Permissions
Please make sure you have correct file and folder permission as suggested below.

.ssh folder permission 700 (rwx——)
authorized_keys 600 (rw——-)
id_rsa 600 (rw——-)
id_rsa.pub 600 (rw——-)
id_dsa 600 (rw——-)
id_dsa.pub 600 (rw——-)

Good luck

Possibly Related Posts:


Comments

Leave a Reply




Planet Malaysia

  • Follow us on Twitter


  • web www.planetmy.com