Created
July 9, 2025 18:51
-
-
Save mike-moreau/3bcfe342542b92153f0b8c0c41faf1a1 to your computer and use it in GitHub Desktop.
mac ssh config file examples
This file contains hidden or 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
# ~/.shh/config | |
# Defaults for all hosts | |
Host * | |
UseKeychain yes | |
AddKeysToAgent yes | |
Host github.com | |
IdentityFile ~/.ssh/id_github | |
Host bitbucket.org | |
IdentityFile ~/.ssh/id_ms_bitbucket | |
# Wildcard Domain | |
Host *.example.com | |
IdentityFile ~/.ssh/id_example | |
# IP Address | |
Host 12.34.567.8 | |
User userNameHere | |
IdentityFile ~/.ssh/id_host_name_here | |
# Custom Host Name | |
Host example | |
HostName ftp.example.com | |
User exampleUserName | |
Port 2222 | |
IdentityFile ~/.ssh/id_example |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
assumes using different keys for each host