gpg: signing failed: Inappropriate ioctl for device Error Message on Linux

Jim Ernst jernst at
Wed Sep 28 19:14:35 CEST 2016

Hello -

I am currently testing keys I created using gpg version 2 2.1.15 (libgcrypt 1.7.3) and I am trying to encrypt a file using a shell script in a LINUX environment. I am getting the following error when the command is executed:

gpg: signing failed: Inappropriate ioctl for device

Has anyone encountered this issue ?

Jim Ernst
NTT Data
NOTE: The sender of this email is an independent contractor of Invacare Corporation or one of its subsidiaries. CONFIDENTIALITY NOTICE: The information in this e-mail message and any attachments may contain privileged, confidential or proprietary information, including confidential health information, protected by applicable Federal or state laws. Such information is intended only for the recipient named above. If you are not the intended recipient, please notify the sender immediately, and take notice that any use, disclosure or distribution of such information is prohibited by law.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20160928/e36a66a8/attachment.html>

More information about the Gnupg-users mailing list