Asking a more precise question:
It appears that I can complete an rsync
-over-ssh
, using a key that requires a passphrase, without entering the passphrase. For example, I can run the rsync
from the command line:
rsync -qavz -e ssh -i /home/keshlam/.ssh/password_id_dsa.pub a.a password_id@192.168.122.47:/home/password_id/a.a
and see the a.a
file appear on the remote machine without being prompted for the passphrase.
My best guess is that this is an ssh caching effect -- I entered the passphrase yesterday and the two machines are still trusting each other.
Does this analysis make sense? And if so what's the easiest reliable way to flush that cache for testing -- reboot?
expect
script I'm trying to use to pump the password into ssh isn't working because the password prompt is popping up as a window. Need to switch it back to command-line interaction, somehow. – keshlam Jan 30 '17 at 18:41SSH_ASKPASS
is set (andssh-askpass
is installed...). So (maybe) you may be able to fix this by modifying the environment and delete the variable (unset SSH_ASKPASS
). – Bakuriu Jan 30 '17 at 19:17