Skip to content

Instantly share code, notes, and snippets.

@ephrin
Created January 14, 2014 12:03
Show Gist options
  • Save ephrin/8417274 to your computer and use it in GitHub Desktop.
Save ephrin/8417274 to your computer and use it in GitHub Desktop.
ssh username/connection alias
Create a file named ~/.ssh/config and put this in there:
Host h
User christopher
HostName my.domain.top
Now you only have to type ssh h and it does the same thing!
You can also use a wildcard:
Host *
User christopher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment