Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
gpg: signing failed: Inappropriate ioctl for device macOS
❱ git config user.signingKey 38AF394C
❱ git config commit.gpgSign true
echo "test" | gpg --clearsign
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
test
gpg: signing failed: Inappropriate ioctl for device
gpg: [stdin]: clear-sign failed: Inappropriate ioctl for device
export GPG_TTY=$(tty)
echo "test" | gpg --clearsign
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
test
-----BEGIN PGP SIGNATURE-----
XXXXXX SUCCESS XXXX
-----END PGP SIGNATURE-----
ref: https://github.com/keybase/keybase-issues/issues/2798
@benyou1969

This comment has been minimized.

Copy link

@benyou1969 benyou1969 commented May 1, 2019

It really works and solves the problem thank you :)

@venura9

This comment has been minimized.

Copy link

@venura9 venura9 commented Jul 23, 2019

Worked for me too - thanks heaps!

@margauxflores

This comment has been minimized.

Copy link

@margauxflores margauxflores commented Jul 30, 2019

Thanks, this really cleared the problem out for me!

@Loner1024

This comment has been minimized.

Copy link

@Loner1024 Loner1024 commented Dec 16, 2019

It is more convenient to add export GPG_TTY=$(tty) to.zshrc .
You can avoid repeating this step in the future

sodo vi ~/.zshrc

Thank you very much.

@dougnoel

This comment has been minimized.

Copy link

@dougnoel dougnoel commented Feb 27, 2020

Very helpful. Solved the problem of not being able to publish to Maven Central when attempting to follow these instructions: https://dzone.com/articles/publish-your-artifacts-to-maven-central

@sweetscientist

This comment has been minimized.

Copy link

@sweetscientist sweetscientist commented May 6, 2020

Works on Windows10 using Ubuntu as well

@brickzzhang

This comment has been minimized.

Copy link

@brickzzhang brickzzhang commented Jul 9, 2020

Really works for me and thank you.

@Allan-Nava

This comment has been minimized.

Copy link

@Allan-Nava Allan-Nava commented Aug 29, 2020

thanks dude

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.