Skip to content

Instantly share code, notes, and snippets.

@imjakechapman
Created June 5, 2013 02:34
Show Gist options
  • Save imjakechapman/5711234 to your computer and use it in GitHub Desktop.
Save imjakechapman/5711234 to your computer and use it in GitHub Desktop.
SSH into your server faster
// first things first, create a file called "config" in ~/.ssh/ from the command line
cd ~/.ssh/
nano config
// secondly, create the Host shortcut
Host myCoolServer
HostName www.myserver.com <can be server name or ip address>
Port 90 <you may have changed the port to prevent from brute attacks. Good for you, :) >
User myUser <you may have also prevented root from logging in directly, list which user you are using for login.>
// lastly, ssh into your server using the new shortcut
ssh myCoolServer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment