So I do not even understand how it can be there. I asked my coworker, he said he did not copy it. 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. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |