Skip to content

Instantly share code, notes, and snippets.

@asdofindia
Last active December 22, 2020 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asdofindia/6ac769c1cee0459ba76db4b6b7d7962a to your computer and use it in GitHub Desktop.
Save asdofindia/6ac769c1cee0459ba76db4b6b7d7962a to your computer and use it in GitHub Desktop.
Sample ~/.ssh/config
Host staging
User root
Hostname 11.11.22.22
Host production
User admin
Hostname example.com
Port 2242
IdentityFile ~/.ssh/id_ed25519_prod
$ ssh staging
Welcome to Ubuntu ...
$ rsync project staging:project
$ scp file staging:file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment