Articles // How to make ssh-copy-id without a headache

If you, like I today, cannot perform a passwordless login via ssh to a remote linux server after copying a public key to the server with ssh-copy-id command, please check if the key is actually presents among other authorized keys on the server. I found that sometimes it is not.

$ cat .ssh/authorized_keys
The agent has no identities.

To fix the problem just add the -i argument like below:

$ ssh-copy-id -i user@server.tld

Comments // 0

Leave a comment

There are no comments yet. Be the first to leave one.

Tags

ssh, linux, security

Technorati Delicious Flickr

Published on October 19, 2009

9 months ago

This article has 0 comments