keybase / keybase/keybase-issues

gpg: signing failed: Inappropriate ioctl for device

Open
#2,798 137 comments 3927 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
899
Forks
40
PR merge metrics
No merged PRs in 30d

Description

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?):
```bash
export GPG_TTY=$(tty)
```

[source](http://unix.stackexchange.com/a/257065)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the bash+curl verification command referenced in the issue and reproduce the GPG signing failure on a server. Check how the command establishes the terminal environment, then confirm that the documented verification flow handles GPG_TTY. Done means the provided command no longer produces the reported error in the relevant server setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.