Google /usr/bin/ssh-copy-id Error No Identities Found
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more failed to open id file '.pub' no such file about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users ssh-copy-id no such file Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping
How To Use Ssh-copy-id
each other. Join them; it only takes a minute: Sign up ssh-copy-id no identities found error up vote 30 down vote favorite 4 I have few client systems where I need to push the ssh key and login from
Ssh-copy-id Permission Denied
my server without authentication prompts. First, on the server, I created ssh key as below which was successful ]# ssh-keygen -t rsa -N "" -f my.key Second, tried copying the pub key but fails with no identity error. Am i doing a wrong step here? ]# ssh-copy-id my.key.pub 10.10.1.1 /usr/bin/ssh-copy-id: ERROR: No identities found unix ssh ssh-keys share|improve this question edited Mar 20 '14 at 11:19 shellter 22.5k54063 asked Mar 20 '14 at 11:01 user3331975 4542714 ssh-copy-id command not found did you confirm that my.key is there with ls -l my.key? Is there a step you're not showing us that did a cd? Probably not, but just asking as your "2nd set of eyes" ;-). Good luck. –shellter Mar 20 '14 at 12:00 add a comment| 7 Answers 7 active oldest votes up vote 26 down vote You need to use the -i flag: ssh-copy-id -i my.key.pub 10.10.1.1 From the man page: If the -i option is given then the identity file (defaults to ~/.ssh/id_rsa.pub) is used, regardless of whether there are any keys in your ssh-agent. Otherwise, if this: ssh-add -L provides any output, it uses that in preference to the identity file share|improve this answer answered Mar 20 '14 at 12:10 Josh Jolly 5,8651841 1 I tried with -i option and pushed the key successfully to target. Also verified authorized_keys file and the key appears to be there.. Then after i tried ssh root@10.10.1.1 but still then prompts for a password.. is there anything more required here. ? ssh-copy-id -i my.key.pub 10.10.1.1 Now try logging into the machine, with "ssh '10.10.1.1'", and check in: .ssh/authorized_keys to make sure we haven't added extra keys that you weren't expecting. ~]# ssh root@10.10.1.1 root@10.10.1.1's password: –user3331975 Mar 20 '14 at 12:40 2 ssh by default looks in ~/.ssh for your keys etc. Since your my.key files appea
User Management Linux General VMware ESXi Red Hat Cluster QUIZ Linux Kernel Linux User Administration
Ssh-copy-id Port
Oracle Database Linux General and Permission Contact Me VMware Learn ssh-copy-id not working about VMware virtualization for its products like vsphere ESX and ESXi, vCenter Server, VMware how to ssh without password View, VMware P2V and many more Linux Step by step configuration tutorials for many of the Linux services like DNS, DHCP, FTP, Samba4 etc http://stackoverflow.com/questions/22530886/ssh-copy-id-no-identities-found-error including many tips and tricks in Red Hat Linux. Database Learn installation and configuration of databases like Oracle, My SQL, Postgresql, etc including many other related tutorials in Linux. Thursday, October 02, 2014 How http://www.golinuxhub.com/2014/10/how-to-fix-usrbinssh-copy-id-error-no.html to fix "/usr/bin/ssh-copy-id: ERROR: No identities found" Posted by Deepak Prasad Thursday, October 02, 2014 1 comment Error: # ssh-copy-id root@192.168.1.11
/usr/bin/ssh-copy-id: ERROR: No identities found Solution: You will have to manually define the path of the public key using -i switch as shown below # ssh-copy-id -i .ssh/id_rsa.pub 192.168.1.11
15
root@192.168.1.11's password:[Provide root password for client machine]
Now try logging into the machine, with "ssh '192.168.1.11'", and check in:
.ssh/authorized_keys
to make sure we haven't added extra keys that you weren't expecting. That did the trick. Related Articles How to create password less ssh connection for multiple non-root users Iptables rules to allow/block ssh incomi
password in 3 simple steps using ssky-keygen and ssh-copy-id as explained in this article. ssh-keygen creates the public and private keys. ssh-copy-id copies the local-host's public key http://www.thegeekstuff.com/2008/11/3-steps-to-perform-ssh-login-without-password-using-ssh-keygen-ssh-copy-id to the remote-host's authorized_keys file. ssh-copy-id also assigns proper permission to the remote-host's home, ~/.ssh, and ~/.ssh/authorized_keys. This article also explains 3 minor annoyances of using ssh-copy-id and how to use ssh-copy-id http://4j.blogspot.com/2009/07/ssh-copy-id-error-no-identities-found.html along with ssh-agent. Step 1: Create public and private keys using ssh-key-gen on local-host jsmith@local-host$ [Note: You are on local-host here] jsmith@local-host$ ssh-keygen Generating public/private rsa key pair. Enter file in which to no such save the key (/home/jsmith/.ssh/id_rsa):[Enter key] Enter passphrase (empty for no passphrase): [Press enter key] Enter same passphrase again: [Pess enter key] Your identification has been saved in /home/jsmith/.ssh/id_rsa. Your public key has been saved in /home/jsmith/.ssh/id_rsa.pub. The key fingerprint is: 33:b3:fe:af:95:95:18:11:31:d5:de:96:2f:f2:35:f9 jsmith@local-host Step 2: Copy the public key to remote-host using ssh-copy-id jsmith@local-host$ ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host jsmith@remote-host's password: Now try logging into the machine, with no such file "ssh 'remote-host'", and check in: .ssh/authorized_keys to make sure we haven't added extra keys that you weren't expecting. Note: ssh-copy-id appends the keys to the remote-host's .ssh/authorized_key. Step 3: Login to remote-host without entering the password jsmith@local-host$ ssh remote-host Last login: Sun Nov 16 17:22:33 2008 from 192.168.1.2 [Note: SSH did not ask for password.] jsmith@remote-host$ [Note: You are on remote-host here] The above 3 simple steps should get the job done in most cases. We also discussed earlier in detail about performing SSH and SCP from openSSH to openSSH without entering password. If you are using SSH2, we discussed earlier about performing SSH and SCP without password from SSH2 to SSH2 , from OpenSSH to SSH2 and from SSH2 to OpenSSH. Using ssh-copy-id along with the ssh-add/ssh-agent When no value is passed for the option -i and If ~/.ssh/identity.pub is not available, ssh-copy-id will display the following error message. jsmith@local-host$ ssh-copy-id -i remote-host /usr/bin/ssh-copy-id: ERROR: No identities found If you have loaded keys to the ssh-agent using the ssh-add, then ssh-copy-id will get the keys from the ssh-agent to copy to the remote-host. i.e, it copies the keys provided by ssh-add -L command to
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-keygenGenerating 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 remotehostuser@remotehost's password:Now try logging into the machine, with "ssh 'remotehost'", and check in: .ssh/authorized_keysto make sure we haven't added extra keys that you weren't expecting.$ ssh remotehostLast login: Mon Jul 20 16:15:16 2009 from 192.168.0.3 # posted by Nico @ 16:18 Comments: helpful article !!! # posted by Elex : 16 July, 2013 12:03 Post a Comment << Home About Me Name: Nico Location: Johannesburg, Gauteng, South Africa View my complete profile Links Freshmeat Linux.com Slashdot IT Web [.co.za] News24 [.co.za] BetaNews Google Reader archives April 2005May 2005June 2005August 2005September 2005October 2005November 2005December 2005January 2006February 2006March 2006April 2006May 2006June 2006July 2006August 2006September 2006October 2006November 2006December 2006January 2007February 2007March 2007April 2007May 2007June 2007July 2007August 2007September 2007October 2007November 2007December 2007January 2008March 2008April 2008May 2008June 2008July 2008August 2008September 2008November 2008December 2008January 2009February 2009March 2009April 2009May 2009June 2009July 2009August 2009September 2009October 2009November 2009December 2009January 2010February 2010March 2010August 2010September 2010May 2011 Adds Site Feed RSS me!