can't connect to `$HOME/.gnupg/S.gpg-agent': No such file or directorygpg-agent: command get_passphrase failed: Operation cancelledgpg: cancelled by usergpg: Key generation canceled.
gpg keygen is having limitation to be run from the "ssh
Bugzilla link below defines the issue quite well in detail.
To have a successful generation of the gpg keygen "user" needs to be in immediate ssh session instead of su-ed session.
make world open.