pts wrote:
I don't follow this either. At that point that you refer to, when I simply press return (i.e., I don't enter any passphrase at all) then it skips to asking for the password for the remote machine (i.e., the very thing I'm trying to avoid). This is not at all intuitive... Why is it asking for a passphrase at that first step yet accepting nothing (except an empty return)?
Unix is not known for its consistency, nor its simplicity.
ssh works with a local private key, and a remote and public key, and often requires way too much manual setup for my own preference.
ssh can have a passphrase on the private key, and can encounter a password on the remote login when the remote public keys are not sent up correctly, when the local private or remote public key are not the expected format as expected by the local or remote system or the local private key or remote public key are not protected appropriately.
If a passphrase is set up on the private key, it will have to be specified on the ssh command, or the passphrase removed and the private key decrypted. I linked to how to remove the passphrase from the private key, if one has been set.
Differing from other implementations, macOS allows the ssh private key to be added to Keychain, as well:
https://apple.stackexchange.com/questions/48502/how-can-i-permanently-add-my-ssh-private-key-to-keychain-so-it-is-automatically#250572
When using ssh and it’s doing something unexpected, add -v, -vv, or -vvv to the ssh command to get some, or to get more, or to get extensive additional debugging information shown. Wading through that output takes time, amd some familiarity with how ssh works. But it is very useful for troubleshooting ssh connections.
DigitalOcean has an ssh intro here:
https://www.digitalocean.com/community/tutorials/ssh-essentials-working-with-ssh-servers-clients-and-keys