Skip to content

Instantly share code, notes, and snippets.

@FoxNeo
Created August 22, 2021 21:25
Show Gist options
  • Save FoxNeo/cdd87743c06e54df99427d6e4d45a87b to your computer and use it in GitHub Desktop.
Save FoxNeo/cdd87743c06e54df99427d6e4d45a87b to your computer and use it in GitHub Desktop.

SSH store connections

open the file with an editor like vim or nano.

$ ~/.ssh/config

or

$ /etc/ssh/ssh_config

example:

Host gamer-server
    User bob
    HostName aws.gamer-server-example.com
    Port 8888

then just type:

$ ssh gamer-server
Successfully connected to gamer-server. Welcome!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment