Normally I give my passphrase for the private key on the first ssh
invocation and then I am not asked for the passphrase (in this and all other bash sessions).
However, under tmux
, I am asked for the passphrase over and over even in the same bash
(same tmux
pane).
I think the problem originated with the Sierra.
How do I avoid having to enter my passphrase repeatedly under tmux
?
PS. ssh-add -l
prints The agent has no identities.
both with and without tmux
.
PPS. $SSH_AUTH_SOCK
names an existing socket under /private/tmp...
.
ssh-add -l
output? If not, the key is not in keyring or thetmux
does not see the keyring (for some reason).ssh-add -l
printsThe agent has no identities.
both with and withouttmux
. but withouttmux
I am not asked for password!$SSH_AUTH_SOCK
on the first remote machine but will not forward credentials properly.