Skip to content

Instantly share code, notes, and snippets.

@maxmanders
Created January 22, 2014 17:49
Show Gist options
  • Save maxmanders/8563639 to your computer and use it in GitHub Desktop.
Save maxmanders/8563639 to your computer and use it in GitHub Desktop.
Example per-user SSH Config
Host *
# Forward remote X11 connections to run a remote GUI app locally
forwardx11 yes
# Only offer up keys defined with IdentityFile below, rather than all keys
identitiesonly yes
cipher arcfour
compression yes
# If using ssh-agent, forward that to remote jump host to avoid copying private keys
forwardagent yes
# Don't kill connetions too quickly
serveraliveinterval 60
# Don't use this auth type, slow and rarely used
gssapiauthentication no
Host some-friendly-name
identityfile /path/to/key
hostname fqdn-of-host
user user-to-login-with
port port-to-use-22-by-default
# Add more definitions below
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment