Skip to content

Instantly share code, notes, and snippets.

@therealechan
Last active August 29, 2015 14:13
Show Gist options
  • Select an option

  • Save therealechan/acf1487add64031666e3 to your computer and use it in GitHub Desktop.

Select an option

Save therealechan/acf1487add64031666e3 to your computer and use it in GitHub Desktop.
Creating SSH shortcut

touch a file call config in your ~/.ssh folder, edit like below

Host myserver  
HostName 104.216.186.124  
User deployer  
Port 22

Make sure you have the right permissions

$ chmod 600 ~/.ssh/config

Now try

$ ssh myserver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment