I did not check every single character, but its unlikely that keys would be so similar that beginning and ending would be the same even when passphrase different I think. But then why public key which I am trying to upload is the same with the one in authorized_keys file if passphrases are different? The same public key cannot accept empty passphrase and and non empty passphrase, that makes sense. When I connected with ssh - I entered a passphrase which was not empty. And the key which I am trying to copy is with an empty passphrase. So something is clearly still wrong here. But I was able to connect by entering a passphrase. Ok, if it is there it would be good, but by staying there it does not let me connect with ssh without entering a passphrase. So I do not even understand how it can be there. I asked my coworker, he said he did not copy it. I'm trying to re-generate ssh host keys on a handful of remote servers via ansible (and ssh-keygen), but the files don't seem to be showing up.The playbook runs OK, but the files on the remote are not altered. If I go to copy the key manually to authorized_keys, I see that the public key is already existing, the same which I want to copy. ssh-copy-id -i id_rsa.pub -p -vĪnd still the same: Enter passphrase for key '/home//.ssh/id_rsa': Then tried again on C machine to copy to A machine. Restarting as by the answer did not work, it wrote sshd not recognized, so I restarted using: sudo /etc/init.d/ssh restart Tried setting password authentication yes on A computer and to restart the service. ssh folder and authorized_keys file in the A computer - they are 700 and 600 so as the comment say they are good. ssh-copy-id -i id_rsa.pub -vvvĬhecked the permissions on. ![]() How could I debug why is passphrase denied?īased on comments I created new public file called id_rsa.pub where everything is in one line nowĪnd run and still get error. Then I see that it uses key in /home//.ssh/id_rsa which is different from the public key I am trying to copy, I mean of course private key is different, but I mean I copy public key of another private key. Now I tried entering passphrase of the file id_. ssh-copy-id -i id_ of A] -p Įnter passphrase for key '/home//.ssh/id_rsa': I try to copy the public key to remote server. Also the tunnel has to work if the machine is restarted.Ĭ - is a virtual machine in computer A which wants to connect to MySQL in B. I want to set up ssh tunnel to the mysql server which is in computer which has virtual machine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |