SSH Certificate No Password not working

Hi all,

For Linux administrators ,SSH is as important ,if not more so, than a watch.

Typing in a password every time a remote connection is established is detrimental to both workflow and security.

Using the tried and tested

cat .ssh/id_rsa.pub | ssh admin@remote.com 'cat >> .ssh/authorized_keys'

to bypass the password prompt is a great help.

However, it has been found that sometimes this doesnt work, the answer might be the permissions on the ‘authorized_keys’ file.

The solution (on the remote server – after executing the above command)

cd .ssh && chmod 600 authorized_keys

Now logoout and try to re-connect using ssh again

Hope this helps

Advertisements