If the program is sshg3, the reason may be that the
sshg3 client does not work if su is used before
establishing the Secure Shell connection. The error output depends on
the terminal used and what kind of an su is made before the
sshg3 connection attempt. sshg3 does not need to be
program-controlled, instead avoid using su before starting
sshg3.