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 about hiring developers
Ssh-copy-id Error No Identities Found
or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x /usr/bin/ssh-copy-id error no identities found Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it /usr/local/bin/ssh-copy-id error no identities found 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 my server without authentication prompts. First,
Ssh-copy-id No Such File
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 did you confirm that my.key is there with ls
Mktemp Failed To Create File Via Template Ssh-copy-id
-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 appear to be in another directory, try ssh -i /location/of/my.key 10.10.1.1 (or consider moving your my.key files into ~/.ssh) –Josh Jo
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 ssh-copy-id permission denied more about Stack Overflow the company Business Learn more about hiring developers or posting
Ssh-copy-id Command Not Found
ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a ssh-copy-id port question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer http://stackoverflow.com/questions/22530886/ssh-copy-id-no-identities-found-error The best answers are voted up and rise to the top How to copy a public key to your server up vote 3 down vote favorite 2 I was trying to figure out how to add a new SSH key to my amazon server - I found this question and answer How do you copy the public key to a ssh-server? However I am so new to Linux/Unix and I http://unix.stackexchange.com/questions/98888/how-to-copy-a-public-key-to-your-server overthink things so I thought the following Since my clients access this server if I mess this up I am going to have serious problems recovering. How could this possibly work because I have no connection to that other server. I read the first response and it suggests that I could send my newly generated public key to any server in the land. Does my second point make sense. The command from the shell (which I just installed) reads to me as ssh - use an ssh session copy the key to (in my case it would be ubuntu@ourspecial.server.com (hosted by Amazon though I am not sure it matters) In other words - for a totally new user the command suggests that if I use the following command $ ssh-copy-id tim@just.some.other.server if there is actually a user named tim and a server named just.some.other.server I would then have some privileges at that server And so I finally tried the command and clearly there is something missing as when I keyed in $ ssh-copy-id ubuntu@my.amazonserver.com the shell returned /usr/bin/ssh-copy-id: ERROR: No identities found linux ssh webserver share|improve this question edited Nov 5 '13 at 3:34 asked Nov 5 '13 at 3:12 PyNEwbie 2511311 They don't provide an
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have http://askubuntu.com/questions/533254/ssh-copy-id-no-identities-found-ubuntu-error Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us https://lists.centos.org/pipermail/centos/2010-October/099860.html Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a error no minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top ssh-copy-id no identities found ubuntu error [duplicate] up vote 1 down vote favorite 1 This question already has an answer here: How do I change the computer name? 14 answers I have error no identities two machines that were setup exactly the same with the same name and users and everything exactly the same. Each machine has two users with this names userA (userA@UserA) and userB (userB@UserA). I've connected both machines using a cable and setup a network wired connection and then ping and they both can see each other. This is how the etc/hosts look like in both machines: 127.0.0.1 localhost 127.0.1.1 UserA # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 192.168.0.1 master 192.168.0.2 slave what I want to do is to change the UserA from both machines to make one named master and the other called slave so that on the master the users will be like this (userA@master and userB@master) while on the slave they will be (userA@slave and userB@slave). The other thing I want to be able to do it is running this command: userB@master:~$ ssh-copy-id -i $HOME/.ssh/id_rsa.pub userB@slave but the problem when I run it I get this error: /usr/bin
not use "id_rsa.pub" file by default? Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] yesterday, i was demoing how to use ssh-copy-id on centos 5.5 to copy one's public key to another machine and account so you don't need to type the password anymore. i used "ssh-keygen" to create the standard RSA-format files, then checked the man page for ssh-copy-id, which reads: ssh-copy-id [-i [identity_file]] [user@]machine ... If the -i option is given then the identity file (defaults to ~/.ssh/id_rsa.pub) is used the above seems to suggest that, as long as i'm happy copying over the default id_rsa.pub file, all i need type is: $ ssh-copy-id -i barney at 192.168.2.19 /usr/bin/ssh-copy-id: ERROR: No identities found $ clearly, that doesn't work. but if i simply add in the name of the file, it's fine: $ ssh-copy-id -i .ssh/id_rsa.pub barney at 192.168.2.19 ^^^^^^^^^^^^^^^ any reason for that? the man page clearly states that that file is the default, but it's obvious i still need to type its name. am i missing something? is the man page wrong? rday -- ======================================================================== Robert P. J. Day Waterloo, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ======================================================================== Previous message: [CentOS] XEN images and XFS don't seem to get along Next message: [CentOS] does ssh-copy-id not use "id_rsa.pub" file by default? Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] More information about the CentOS mailing list