SSH_ASKPASS errors being generated on SSH, SFTP, and SCP connections initiated on the System i.
Resolving The Problem
Users trying to initiate SSH, SFTP, and SCP connections on the System i receive the ssh_askpass error listed below:
ssh_askpass: exec(/QOpenSys/QIBM/ProdData/SC1/OpenSSH/openssh_version/libexec/ssh-askpass): A file or directory in the path name does not exist.
If the DISPLAY environment variable within the user's QSHELL or QP2TERM session is set to some value, SSH is designed to check for the ssh_askpass program on any ssh, sftp, or scp call from a pseudoterminal device. Becausee QSHELL & QP2TERM are not true pseudoterminal devices and the DISPLAY environment variable was set for the user's session, the ssh_askpass error was generated. Displaying the environment variables within a QSHELL or QP2TERM session can be accomplished by typing env and pressing Enter. Listed below is a portion of the environment variables from a user's session showing that the DISPLAY environment variable is set LAWPRD:
Remove the DISPLAY environment variable from a user's QSHELL or QP2TERM session by typing unset
DISPLAY and pressing Enter. Without the DISPLAY environment set, calling the SSH, SFTP, or SCP clients
should not result in the generation of the ssk_askpass error.
Note: QSHELL and QP2TERM sessions can inherit a portion of their environment variables from the
system or job level. Make sure that the DISPLAY environment variable has not been set in those
11 November 2019