The only thing not mentioned in the title is that detecting an SSH connection is done by checking whether the environment variable SSH_CONNECTION is present or not.
An alternative might be to not change the behaviour, but instead (when detecting an SSH connection) print a message telling the user that if they are unable to enter the password, they might need to set LPASS_DISABLE_PINENTRY=1 and try again.
Fixes https://github.com/lastpass/lastpass-cli/issues/568
The only thing not mentioned in the title is that detecting an SSH connection is done by checking whether the environment variable
SSH_CONNECTION
is present or not.An alternative might be to not change the behaviour, but instead (when detecting an SSH connection) print a message telling the user that if they are unable to enter the password, they might need to set
LPASS_DISABLE_PINENTRY=1
and try again.