SSH Command Execution Hangs, although interactive shell functions fine
The problem was indeed my login script, although not to do with requiring a terminal (I’d suspected that and tested with the -t and -T options). The problem was that my .bashrc was running an exec (in this case to zsh – because our system doesn’t allow chsh to zsh). The offending line: test -f … Read more