Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In case of "command get_passphrase failed: Inappropriate ioctl for device" #11

Closed
0xjjpa opened this issue Nov 11, 2016 · 10 comments
Closed

Comments

@0xjjpa
Copy link
Contributor

0xjjpa commented Nov 11, 2016

For some reason I had to setup the GPG TTY variable on my bash when I tried to sign my commit (i.e. -S flag) because of passphrase, which is new to me since I usually have the passphrase prompt within my terminal, so who knows, might be a new GPG version.

Anyway, fixed it with:

GPG_TTY=$(tty)
export GPG_TTY

Might be worth adding it to the README.md under common issues and/or what not.

@benbieler
Copy link

benbieler commented Dec 9, 2016

Jup. Just had the same Problem. Fixed it as mentioned here. Thx

@pstadler
Copy link
Owner

Care to open a pull request? 🍻

@0xjjpa
Copy link
Contributor Author

0xjjpa commented Dec 17, 2016

@pstadler #13

pstadler added a commit that referenced this issue Dec 21, 2016
#11 Information about Inappropriate ioctl for device error
@pstadler pstadler closed this as completed Jan 4, 2017
@johnmathews
Copy link

I have this problem also. Thanks for the fix.

@rayrutjes
Copy link

Still accurate ;)
Is there an easy way to remember the passphrase on OSX?

@roln
Copy link

roln commented Apr 10, 2017

thanks a lot ! Fixed it

@kavdev
Copy link

kavdev commented Apr 17, 2017

I ran into this when attempting to use gpg2 (with gpg-agent) when signing commits in git on WSL bash. Thanks for the solution.

Git's error output:

gpg: signing failed: Inappropriate ioctl for device
gpg: signing failed: Inappropriate ioctl for device
error: gpg failed to sign the data
fatal: failed to write commit object

@chenxiaojie
Copy link

thks

@zw201913
Copy link

thanks a lot ! Fixed it

@jgillich
Copy link

Also getting this in WSL after every system restart. Does anyone know what could be causing it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants