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.<
I recently encountered a problem with the same symptoms, but determined that the issue was not a problem in my login scripts. Rather, my local .ssh/config file was configured with RequestTTY force for the host that I was trying to copy to.