Skip to content

Navigation Menu

Sign in
Sign up

How to make pinentry working when using ssh command? #467

Unanswered
amalgame21 asked this question in Q&A
Discussion options

I have a tomb file on remote machine.
If I ssh to it, then use tomb command to mount it, everything is fine.

I want to create a script to automate this process and use rsync to back up files.
One of the line in the script is ssh remote-device 'tomb open /path/to/file.tomb -k /path/to/file.tomb.key'
However, the output displayed the pinentry is inappropriate.

How can I get around this?
Thanks!

You must be logged in to vote

Replies: 2 comments 1 reply

Comment options

One way around may the use of sshfs? Instead of mounting it on the remote machine mount the dir and open the tomb locally?

In any case I will try to take a look at this this weekend. (Or maybe you had in the meantime a different solution?)

You must be logged in to vote
1 reply
Comment options

Narrat Jun 25, 2023
Collaborator

And more generally asked. What pinentry program do you expect to see? Or what happens normally when you use it locally?
If you were a user of pinentry-curses or pinentry-tty there shouldn't be any problem.

Another approach could be to use of the gpg integration in tomb and make use of the GPG_TTY variable in the script. This should ignore DISPLAY.

Comment options

Maybe your problem with pinentry is fixed in the latest 2.11 release: I added support for pinentry-tty which indeed works better over ssh, but before this fix wasn't used even if installed. Happy to know how goes.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /