Skip to content

Instantly share code, notes, and snippets.

@vallettea
Created June 12, 2014 17:12
Show Gist options
  • Select an option

  • Save vallettea/ddf0b83b6d5fdfe42605 to your computer and use it in GitHub Desktop.

Select an option

Save vallettea/ddf0b83b6d5fdfe42605 to your computer and use it in GitHub Desktop.
to set remote ssh access without password
# on my laptop:
scp ~/.ssh/id_rsa.pub vallette@server_ip
# in ~/.ssh/config
Host linode
User vallette
Hostname server_ip
ServerAliveCountMax 3
ServerAliveInterval 10
# on the server
cd
mkdir .ssh
mv id_rsa.pub .ssh/authorized_keys
chown -R vallette:vallette .ssh
chmod 700 .ssh
chmod 600 .ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment