Skip to content

Instantly share code, notes, and snippets.

@repodevs
Created December 12, 2018 14:56
Show Gist options
  • Star 42 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save repodevs/a18c7bb42b2ab293155aca889d447f1b to your computer and use it in GitHub Desktop.
Save repodevs/a18c7bb42b2ab293155aca889d447f1b to your computer and use it in GitHub Desktop.
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
@dnslin
Copy link

dnslin commented Feb 18, 2023

Unfortunately, it doesn't work on My Arch Linux

@FelipeLemosBellini
Copy link

THX S2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment