When I attempt to execute a command on a remote server with ssh, the ssh command hangs after the exec request accepted debug message, and eventually times out.<
exec request accepted
We fixed this by adding adding -n (to redirect std in from /dev/null) and -t (force pseudo-tty allocation)
Example:
ssh -t -n user@host command