I have generated a ssh-keygen from server1, transferred it to server2 (both Ubuntu servers) using scp, added it to the .ssh/authorized_keys and then changed the permissions to both directory and file. The problem is that when i try to ssh or scp from server1 to server2, it keeps asking me for the passphrase.

It worked perfectly from my mac to the server. I followed this Git keeps asking me for my ssh key passphrase which worked but after i logout from both servers, it keeps on asking me for the passphrase again. Can someone help me please?

有帮助吗?

解决方案

Ok found that the solution was not to include a passphrase when you generate the ssh-keygen...

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top