Use Pub key with IdentifyFile

This is to allow the correct usage of ssh keys from my password vault
where there are multiple keys that _could_ work.
This commit is contained in:
James Patrick 2024-07-16 11:47:01 -04:00
parent a58ae3b59d
commit 89a2f6d6ca
No known key found for this signature in database

View File

@ -1,13 +1,14 @@
ServerAliveInterval 300 ServerAliveInterval 300
ServerAliveCountMax 3 ServerAliveCountMax 3
host github.com
IdentityFile ~/.ssh/github.com.pub
IdentitiesOnly yes
Host git.jpatrick.io Host git.jpatrick.io
Port 222 Port 222
IdentityFile ~/.ssh/git.jpatrick.io IdentityFile ~/.ssh/git.jpatrick.io
Host jpatrick.io Host jpatrick.io
IdentityFile ~/.ssh/jpatrick.io IdentityFile ~/.ssh/jpatrick.io
Host github.com
IdentityFile ~/.ssh/github.com
Host *.greenfiling.com Host *.greenfiling.com
ForwardAgent yes ForwardAgent yes
Host * Host *