Use via SSH (i.e., so no windows pop up on remote computer)?

tofergregg's Avatar

tofergregg

05 Apr, 2012 02:34 PM

Hi there,

If I ssh into my Mac and try to decrypt (using "gpg") a file that was encrypted using --symmetric, so it asks me for a passphrase, a window pops up on the remote Mac asking for the phrase. Is there a way to force the command line version of gpg to not use the GUI on a Mac? Thanks!

  1. 1 Posted by tofergregg on 05 Apr, 2012 02:39 PM

    tofergregg's Avatar

    I see that someone else asked the same question recently, and the answer was "use GPG1 instead of GPG2." Now I have to locate GPG1 on my computer. Cheers!

  2. Support Staff 2 Posted by Luke Le on 05 Apr, 2012 02:40 PM

    Luke Le's Avatar

    Hi,

    that's the easy way out, but not really the test.
    Testing some stuff right now to find out if you can do it with gpg2 as well.

  3. 3 Posted by tofergregg on 05 Apr, 2012 02:45 PM

    tofergregg's Avatar

    Sorry -- deleted this before I noticed your comment! Here's my original comment (roughly):

    I'd like to use gpg from the command line on my Mac, without the GUI popup (e.g., over ssh). My solution (seen elsewhere) was to switch to gpg1. That works for me, but if there is a gpg2 solution, great. Cheers!

  4. Support Staff 4 Posted by Steve on 09 Apr, 2012 02:18 PM

    Steve's Avatar

    Currently there is no solution for macgpg2. If there'll be a solution we'll announce it as soon as macgpg2 can be used with ssh.

    Sorry I don't have a better reply.

    steve

  5. Steve closed this discussion on 09 Apr, 2012 02:18 PM.

  6. Luke Le re-opened this discussion on 04 Jun, 2012 07:35 PM

  7. Support Staff 5 Posted by Luke Le on 04 Jun, 2012 07:35 PM

    Luke Le's Avatar

    Hi tofergregg,

    if you install the latest MacGPG2 version from nightly.gpgtools.org you can now enter the passphrase directly from the terminal as expected.

    In order to do that you have to add the environment variable:

    export PINENTRY_USER_DATA="USE_CURSES=1"

    Best is to put it into your .bashrc

  8. Support Staff 6 Posted by Steve on 10 Jul, 2012 10:43 AM

    Steve's Avatar

    No further user feedback. Closing.

    @tofergregg: Should your problem persist, feel free to re-open this discussion any time.

    All the best,
    steve


    Please consider a donation. We do all this in our spare time.

  9. Steve closed this discussion on 10 Jul, 2012 10:43 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac