Daniel 'NebuchadnezzaR' Dehennin <[EMAIL PROTECTED]> writes: > Hello, > > I juste check the last xtla archive from http://xsteve.nit.at/tla and > I tried a commit. > It fails with the error message : > gpg: cannot open `/dev/tty': no device or address > signature command exited with non-0 status (2) > > command: gpg -u 2A408F69 --clearsign
I think the issue here is that GPG needs to be run from a regular TTY in order to prompt for the passphrase for your key. Because Xtla is running GPG non-interactively, this can't happen so it bombs out. I think one common solution is to use a GPG key agent which works much like ssh-agent--you enter your GPG key passphrase once per session and then further invocations of GPG can read it from the agent and don't need to prompt you for it. There's a brief note on this at http://lists.gnu.org/archive/html/gnu-arch-users/2004-02/msg00569.html. The way I've done this is to have a little script I've called "gpg-wrapper" which runs gpg set to read the passphrase from a pipe, and then I call ssh-askpass with its stdout redirected to that pipe. This way I get a dialog asking for my password when it's required. I can send along this script but a) it's written in Common Lisp and requires the 'clisp' compiler; and b) I can't vouch for the security of doing it this way :o) Cheers, Mark -- Mark Triggs <[EMAIL PROTECTED]>
