Last active
December 22, 2020 10:38
-
-
Save asdofindia/6ac769c1cee0459ba76db4b6b7d7962a to your computer and use it in GitHub Desktop.
Sample ~/.ssh/config
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
Host staging | |
User root | |
Hostname 11.11.22.22 | |
Host production | |
User admin | |
Hostname example.com | |
Port 2242 | |
IdentityFile ~/.ssh/id_ed25519_prod |
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
$ 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