by 0942v8653 · 10y ago · 0 comments
My first thought is to create an entry in my ~/.ssh/config with an entry for the untrusted host I'm going to ssh in to, using the "IdentityFile" keyword to point to some bogus/misleading identity file. How does that sound?
Host *
# Do not send pubkey to each and any host
PubkeyAuthentication no
# Use Agent
IdentitiesOnly yes
Then override 'PubkeyAuthentication' to yes for each known server you want to connect to.Not just any public key, it's your public key. It identifies you.