/usr/bin/ssh-copy-id: ERROR: No identities found

/usr/bin/ssh-copy-id: ERROR: No identities found

The error occurs when you want to copy your public key to a remote server using the utility ssh-copy-id

By default, the program looks for ~/.ssh/id_rsa.pub

If you have generated dsa keys, the location of your public file must be specified explicitely :

ssh-copy-id -i ~/.ssh/id_rsa.pub

Create an alias in your bashrc file such as :

alias cpid=’ssh-copy-id -i ~/.ssh/id_rsa.pub’

Reload your bashrc file to have this new alias available in your shell.



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.