Skip to content

Instantly share code, notes, and snippets.

@kikermo
Created January 11, 2020 08:50
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 kikermo/30ec03e17dac035be090b1599f54fe9d to your computer and use it in GitHub Desktop.
Save kikermo/30ec03e17dac035be090b1599f54fe9d to your computer and use it in GitHub Desktop.
Basic SSH configuration ~/.ssh/config. Replace the parameters inside the angle brackets
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