What is SSH Key?

SSH (Secure Shell) Key is a tool used as an identity or authentication to an SSH server using cryptography.

RSA (Rivest-Shamir-Adleman)cryptosystem is one of the first practical public-key cryptosystems and is widely used for secure data transmission. In such a cryptosystem, the encryption key is public and different from the decryption key which is kept secret (private).

Source: Wikipedia



Figure 1(above) : Diagram showing how ssh authentication works.
Image Source: Opengear
  • Client #1:

      ssh-keygen -t rsa
Copy the key from .ssh/ ‘ssh-rsa XXXXXXXXXX….’

  • Client #2:

      ssh-keygen -t rsa

Paste the key from Client #1 to .ssh/authorized_keys

  • Now you can ssh Client #2 from Client #1 without prompting for password
    If you want vise versa, do the same for Client #2

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s