I have a little problem :-)
For years, I've been using SSH with public key authentication to connect to a remote server, and my private key is formatted like this:
-----BEGIN DSA PRIVATE KEY-----
-----END DSA PRIVATE KEY-----
Now I need to create another key for another user on the same server, so I've run ssh-keygen and the output private key is something like
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----
So basically the only difference is that the new one is RSA and uses a different encryption algorithm
Anyway, if I set my .ssh/config file to use the new key (or if I rename it to "id_rsa"), ssh just skips the step when it asks for the passphrase, and goes directly to password authentication. However, in the end, it says "Permission denied (publickey
Another thing... While the working key's public part is like:
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "[2048-bit dsa, simopal6@simone-nb, Mon Jul 18 2005 20:10:27]"
---- END SSH2 PUBLIC KEY ----
the new one is
ssh-rsa stuffstuffstuff simopal6@simopal6-nb
Could this difference be important?
I've tried creating a new key which uses DSA, but I got the same result...
Does anyone know what the cause to this might be?