Stop macOS from asking for the ssh passcode every time

Upon the most recent update for macOS ( version 10.12.2), I was being prompted for my SSH passcode every time I would ssh into a server.  As someone who moves between servers often, this got annoying.

Thankfully, a new config option can fix this:

UseKeychain yes

Just add that to your .ssh/config and you don’t need to enter your private key passcode every time you ssh.  The old behavior will be back.  This can be enabled only for specific servers using the cascade inside.ssh/config or for all servers.

Leave a Reply

Your email address will not be published. Required fields are marked *