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_keysas here
To be able to push code to github(same idea)
- add public key to your github ssh key