In your .ssh&#x2F;config file:<p><pre><code>    Host *
    # Do not send pubkey to each and any host
    PubkeyAuthentication no
    # Use Agent
    IdentitiesOnly       yes
</code></pre>
Then override &#x27;PubkeyAuthentication&#x27; to yes for each known server you want to connect to.