SSH

  • Stands for Secure Shell, of course!

  • Used to perform stuff on a remote server.

  • Data being sent is encrypted.

Authentication Methods

Command : ssh ninjavin@10.10.10.10

  1. Password Based - If I don't have the ssh key setup already, I am prompted to enter the password of user ninjavin on 10.10.10.10

  2. Public/Private key pair - Password less authentication. We need to generate keys on our client server.

Generating Keys

Command : ssh key-gen

  • ~/.ssh/id_rsa [Private Key]

  • ~/.ssh/id_rsa.pub [Public Key]

  • Public key goes into the server's authorized_keys file

Last updated