Query related to ssh private-public key authentication
I have been instructed to work on a remote server via ssh for which a key has been sent to me via email. It was actually a private key. So, I copied that key from the email and put it to my desktop in the name "ssh-key." As per the instruction, following is the ssh command to log in to the remote server :
ssh root@<remoteServerName> -i /home/saagar/Desktop/ssh-key
where ssh-key is the file with the content i copied from email. I can succesfully log in to the server.
My question is how this private key method of authentication works..??
I am aware and also used to the conventional method of putting our public key in the authorized_keys list of the remote server's .ssh directory, but not this way. I tried to google, but in vain.
I tried to simulate this in my lan but still it asks for a password....
Last edited by saagar; 03-20-2010 at 01:12 PM.