I'm trying to exec a command to ssh into a host from a Tomcat instance that runs as Apache. This isn't working because of the following error:
debug1: read_passphrase: can't open /dev/tty: No such device or address
However, if I open a shell and manually
su to the apache user, I can execute this command just fine.
Do I need to change configuration or can I possibly use the
-t option with ssh to specify a device or address that exists?