Ubuntu: Meaning of: Identity added: .ssh/example_rsa ((null))



Question:

I SSH connected to a server using:

ssh -i ~/.ssh/example_rsa root@xxxxxxxxx  

I got the following response:

Identity added: .ssh/example_rsa ((null))  

I'd like to understand:

  1. Added to what?
  2. What does the ((null)) at the end mean?


Solution:1

Running

ssh -i ~/.ssh/example_rsa root@xxxxxxxxx  

never prints

Identity added: .ssh/example_rsa ((null))  

It would get print if you have run:

ssh-add ~/.ssh/example_rsa  

The null means comment from the identity file (source). Your private key can have stored comment to easier distinguish between various keys:

fprintf(stderr, "Identity added: %s (%s)\n", filename, comment);  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »