How do I define an alternate fallback in ~/.ssh/config?
2
votes
1
answer
1108
views
I have a number of entries in
~/.ssh/config
:
Host github.com
Hostname github.com
User git
IdentityFile ~/.ssh/github
Host mydomain.com
User name
IdentityFile ~/.ssh/id_rsa
Host full.name@work.com
Hostname work.com
User full.name
IdentityFile ~/.ssh/work_rsa
If none match, the default fallback is id_rsa
. But I'd like a different fallback. The following attempt failed, because it catches everything, overriding any previous settings.
Host '*'
IdentityFile ~/.ssh/fallback
What is the correct way to express "none of the above"?
Asked by lofidevops
(3349 rep)
Apr 12, 2018, 02:59 PM
Last activity: Mar 29, 2024, 06:27 PM
Last activity: Mar 29, 2024, 06:27 PM