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
id_rsa
which is the Private Key(Donot Share)id_ras.pub
→ 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
-A
flag enables forwarding of the SSH Authentication Agent