Skip to content

Instantly share code, notes, and snippets.

@kosyfrances
Last active February 2, 2016 11:02
Show Gist options
  • Select an option

  • Save kosyfrances/5db0867de3962dfc1606 to your computer and use it in GitHub Desktop.

Select an option

Save kosyfrances/5db0867de3962dfc1606 to your computer and use it in GitHub Desktop.
To configure the system so that you can do fabric (i.e. SSH) without password.

For this, on local machine do:

ssh-keygen and agree with all defaults (if you have no reasons do otherwise) cat ~/.ssh/id_rsa.pub and copy that key

On remote machine:

mkdir ~/.ssh && chmod 700 ~/.ssh
touch ~/.ssh/authorized_keys2 && chmod 600 ~/.ssh/authorized_keys2

Paste copied key into authorized_keys2

From now your remote machine “trusts” your local machine and allows logging it in without password. Handy.

Copied from http://stackoverflow.com/questions/2339735/fabric-password

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