Skip to content

Instantly share code, notes, and snippets.

@harryscholes
Last active May 18, 2017 09:49
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 harryscholes/2b0fb7ee73ad705d2f7d4b0f33c78dbe to your computer and use it in GitHub Desktop.
Save harryscholes/2b0fb7ee73ad705d2f7d4b0f33c78dbe to your computer and use it in GitHub Desktop.
Passwordless SSH login
# Copy SSH keys to remote server for passwordless login
ssh-copy-id <username>@<remote.server>
ssh -XY <username>@<remote.server>
# Additionally add this to ~/.ssh/config file
Host <name>
User <username_on_remote_server>
HostName <remote.server>
proxyCommand ssh -W <remote.server>:22 <username>@<login.server>
# Then in the shell
ssh -XY <name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment