Skip to content

Instantly share code, notes, and snippets.

@nicon-dev
Created August 21, 2014 11:55
Show Gist options
  • Save nicon-dev/239f1029f0b2b1fd026b to your computer and use it in GitHub Desktop.
Save nicon-dev/239f1029f0b2b1fd026b to your computer and use it in GitHub Desktop.
create SSH alias
nano ~/.bash_profile
alias servername='ssh -p 888 user@server.domain.com'
#Now you only have to type ‘servername’ and off you go.
#source: http://osxdaily.com/2011/04/11/use-aliases-to-create-ssh-shortcuts/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment