ssh generate public and private key
- anyone can has your public key but only you can has private key
- anyone nat send you secure message will encrypt it with your public key
- who has private key able to see message content after decoding it with private key
To be able to connect to server with ssh without asking you credentials
- add your public key to
~/.ssh/authorized_keys
as here