when I ssh using mobaXterm to a RHEL7 server (with uname and pwd saved) I just get a blinking cursor that will take input but not execute anything.  I can press ctrl+c and then appears bash-4.2$ and all is well however this is annoying and adding ctrl+c to mobaXterm execute command on log in does not solve the issue here.Using other ssh/telnet tools such as putty,secureFX yields same results (ctrl+c to get interactive shell)
ctrl+c on login
bash;login
If the .profile actually does contain:SHELL=`type -p bash`exec bash -lAnd there is no .bash_profile, we have a loop. Your login shell (say /bin/sh, perhaps) reads .profile, which causes it to exec bash as a login shell. Bash, when run as a login shell, reads .bash_profile, and if that is missing, .profile. So, it too would read execute these commands, which causes it to exec bash as a login shell. Bash, when run as a login shell, .This might be a saner way to do this:if [ -z ${BASH_VERSION} ];then    SHELL=`type -p bash`    exec bash -lfiThough, instead of hacks like this, you should ask your system administrator to set bash as your login shell (assuming you can't do so yourself using chsh).