I need to use another computer to access my ssh server. This is because a recently implemented vpn at my university doesn't work on my current computer and I have lost access to the server.
I ssh via encrypted ssh keys. Can I copy these keys to the new computer (on which the vpn works). I tried copying the id_rsa
and id_rsa.pub
files in the ~/.ssh
folder but it doesn't recognize the keys and there is no prompt to input a password to decrypt the keys.
EDIT: I can't access the server to generate a new key pair for the new computer and am out of the country so can't physically access it.
Thanks.
Best Answer
Check the permissions and ownership of your private key file. From the manual,
Typically the key files should look like this,
which you can enforce via: