lastpass / lastpass-cli

LastPass command line interface tool
GNU General Public License v2.0
2.85k stars 292 forks source link

password.c: auto-disable pinentry when connected through SSH #577

Closed 1ace closed 2 years ago

1ace commented 3 years ago

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.