SSH Key-Based Authentication on RHEL6

You've set up your new Red Hat Enterprise Linux 6 box and you can ssh in using passwords with no problem.

But now you want to stop using passwords and start using keys. So you install your keys:

scp .ssh/id_dsa.pub me@example.com:.ssh/authorized_keys

But the system keeps prompting you for a password! The keys don't seem to work at all.

That might be because SELinux is preventing it because the proper attributes are not on the authorized_keys file. Or possibly you have permissions wrong on your .ssh directory. The solution:



Subscribe to RSS - RHEL6