Created
June 5, 2013 02:34
-
-
Save imjakechapman/5711234 to your computer and use it in GitHub Desktop.
SSH into your server faster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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