Skip to content

Instantly share code, notes, and snippets.

@waleedsamy
Last active December 16, 2015 13:45
Show Gist options
  • Select an option

  • Save waleedsamy/34765fe08ca8100446d8 to your computer and use it in GitHub Desktop.

Select an option

Save waleedsamy/34765fe08ca8100446d8 to your computer and use it in GitHub Desktop.
use ssh for baby

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

To be able to push code to github(same idea)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment