ssh-copy-id: ERROR: No identities found

From time to time when I run the ssh-copi-id(1) command I get the error "ssh-copy-id: ERROR: No identities found".

The solution is simple: create a private and public key pair.
$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/user/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/user/.ssh/id_rsa.
Your public key has been saved in /home/user/.ssh/id_rsa.pub.
The key fingerprint is:
ff:57:6c:a1:ce:a1:93:cb:6d:14:f1:8c:18:56:fa:96 user@hostname
$ ssh-copy-id -i /home/user/.ssh/id_rsa.pub remotehost
user@remotehost's password:
Now try logging into the machine, with "ssh 'remotehost'", and check in:


to make sure we haven't added extra keys that you weren't expecting.

$ ssh remotehost
Last login: Mon Jul 20 16:15:16 2009 from

helpful article !!!
Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?