keybase / keybase-issues

A single repo for managing publicly recognized issues with the keybase client, installer, and website.
900 stars 37 forks source link

gpg: signing failed: Inappropriate ioctl for device #2798

Open yveoch opened 7 years ago

yveoch commented 7 years ago

When trying to use the bash+curl verifying method on a server, this cryptic error message might happen:

gpg: signing failed: Inappropriate ioctl for device

Since this is a fatal error and also quite difficult to debug, maybe the fix could be put somewhere (in the provided command line?):

export GPG_TTY=$(tty)

source

FedeNQ commented 1 year ago

Obrigado 🫡💘

maharce commented 1 year ago

thank you very much

iiykeazu commented 1 year ago

The GOAT

TruncatedDinoSour commented 1 year ago

The GOAT

image

TruncatedDinoSour commented 1 year ago

the CAT

box_cat

FarmersWrap commented 1 year ago

Thank you so much! Saved my ass.

andremacdowell commented 11 months ago

I really wasn't expecting that this would solve my problem, thanks!

kowalks commented 9 months ago

I think I've already gotten this error message like 12938901832 times before.

I keep debugging it for like 3 hours.

And always this issue post saves me.

You have saved our lives. We are eternally grateful.

neeels commented 9 months ago

This issue post has gained a meta level of helpfulness, an evergreen of uplift: for years now, every now and then, we get heartwarming thank-you messages by surprise. It's one of those small positive things that make my day.

Thanks everyone! <3

rafay99-epic commented 8 months ago

When trying to use the bash+curl verifying method on a server, this cryptic error message might happen:

gpg: signing failed: Inappropriate ioctl for device

Thank you so much...Life Saver

EtherealEntity commented 7 months ago

my saviour! :D

Jacob-Stevens-Haas commented 7 months ago

Suddenly, this doesn't seem to be working. I'm trying to get a copy of my GPG keys to my new laptop with:

ssh <user@server> gpg --export-secret-key <keyid> | gpg --import --batch

I've added the magic words to .profile, .bashrc, and .bash_profile in both user@server and locally, including restarting the terminal. Not sure what's going on.

pransteter commented 5 months ago

Man... you are absolutely an amazing savior. Awesome. Thank you so much!

azharlihan commented 5 months ago

Thanks @yveoch you save mee..

https://github.com/keybase/keybase-issues/issues/2798#issue-205008630

uratne commented 5 months ago

Thanks @yveoch worked for me

rizlas commented 5 months ago

2024 and still kicking! Thank you ❤️

romayengineer commented 4 months ago

thank you very much!

yankikucuk commented 3 months ago

real superhero.

space7panda commented 3 months ago

For lazy zsh users:

echo 'export GPG_TTY=$(tty)' >> ~/.zshrc
josenriagu commented 3 months ago

on MacOS, make sure you also have a pinentry program installed (if you have specified a passphrase when setting up your gpg key). You can do so (using homebrew as example);

brew install pinentry-mac then echo "pinentry-program $(which pinentry-mac)" >> ~/.gnupg/gpg-agent.conf and finally killall gpg-agent

Restart your terminal and voila!

As seen on Github Docs: Telling Git about your signing key

owans commented 3 months ago

Worked for me. Thank you @josenriagu

ismailarilik commented 2 months ago

Just a thought: This shouldn't be an issue nor a bug since the need to expose GPG_TTY=$(tty) is documented here: https://www.gnupg.org/documentation/manuals/gnupg/Invoking-GPG_002dAGENT.html

Of course, it can also be documented for keybase.

FatDoge commented 1 month ago

It works!😋

Dude29 commented 1 month ago

Thank you for this! 🙏

gscu commented 1 month ago

THANK YOU

red17electro commented 1 month ago

on MacOS, make sure you also have a pinentry program installed (if you have specified a passphrase when setting up your gpg key). You can do so (using homebrew as example);

brew install pinentry-mac then echo "pinentry-program $(which pinentry-mac)" >> ~/.gnupg/gpg-agent.conf and finally killall gpg-agent

Restart your terminal and voila!

As seen on Github Docs: Telling Git about your signing key

Thanks, this worked for me 🙏🏻

Asthriona commented 2 weeks ago

When trying to use the bash+curl verifying method on a server, this cryptic error message might happen:

gpg: signing failed: Inappropriate ioctl for device

Since this is a fatal error and also quite difficult to debug, maybe the fix could be put somewhere (in the provided command line?):

export GPG_TTY=$(tty)

source

Much love! <3

Mikael-R commented 1 week ago

When trying to use the bash+curl verifying method on a server, this cryptic error message might happen:

gpg: signing failed: Inappropriate ioctl for device

Since this is a fatal error and also quite difficult to debug, maybe the fix could be put somewhere (in the provided command line?):

export GPG_TTY=$(tty)

source

Thank you buddy