Follow

If you are having problems for GPG password prompt due to non existent display just add this in your .bashrc file for GPG to prompt for password in CLI:
GPG_TTY=$(tty)
export GPG_TTY