Skip to content

Instantly share code, notes, and snippets.

@craiglondon
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save craiglondon/baa7beb77985c266201a to your computer and use it in GitHub Desktop.
Save craiglondon/baa7beb77985c266201a to your computer and use it in GitHub Desktop.

Simply digit

cd

If you dont' have already an ssh keychan generate it

ssh-keygen -t rsa -C "your@email.com"

Lastly

cat ~/.ssh/id_rsa.pub | ssh -p 0000 user@remote-host'cat >> ~/.ssh/authorized_keys'

0000 is the port that allows you to connect trough ssh

The first time it will asks you the remote password, but then it works

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