Created
January 11, 2020 08:50
-
-
Save kikermo/30ec03e17dac035be090b1599f54fe9d to your computer and use it in GitHub Desktop.
Basic SSH configuration ~/.ssh/config. Replace the parameters inside the angle brackets
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 * | |
UseKeychain yes | |
AddKeysToAgent yes | |
IdentityFile ~/.ssh/id_rsa | |
Host mainframer | |
User <username_on_remote_machine> | |
HostName <remote_machiche_location> | |
Port 22 | |
IdentityFile ~/.ssh/id_rsa.pub | |
PreferredAuthentications publickey | |
ControlMaster auto | |
ControlPath /tmp/%r@%h:%p | |
ControlPersist 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment