I have two machines, M1 and M2, both running OS X, and a third machine, L, running Linux. M1 and M2 have RSA keys unlocked in the Keychain, so I can:
- ssh from M1 to M2 without being asked for a password or the key's passphrase
- ssh from M2 to L without being asked for a password or the key's passphrase
However, when I ssh from M1 to M2, and then to L (while still physically on M1), it asks me for the key's passphrase! I've tried manually unlocking the login.keychain
using the security
command, but it seems to have no effect.
What's going wrong? How can I double ssh without typing any passphrases?