Last active
May 18, 2017 09:49
-
-
Save harryscholes/2b0fb7ee73ad705d2f7d4b0f33c78dbe to your computer and use it in GitHub Desktop.
Passwordless SSH login
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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