SSH → Secure Shell

  • ~/.ssh/authorized_keys contains list of Public Keys. These keys are authorized to log into the system.
  • $ ssh-keygen generates a SSH key in ~/.ssh deirectory
    • Two keys are generated
      1. id_rsa which is the Private Key(Donot Share)
      2. → Public Key (for sharing)

For Copying Public Key to Server

ssh-copy-id username@hostname
  • $ ssh-add adds your Private Key to the SSH Authentication Agent for sso
    • The -A flag enables forwarding of the SSH Authentication Agent