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
I eventually found the "$-" var which works for me:
if [[ $- =~ i ]] ; then [ -x /bin/tcsh ] && exec /bin/tcsh # Bash startup stuff goes here... fi
Got this from: https://www.gnu.org/software/bash/manual/html_node/Is-this-Shell-Interactive_003f.html