tharrison
Programmer
- Feb 25, 2009
- 3
The following command hangs for me when run from one server:
ssh remoteserver /etc/init.d/tomcat55 restart
(running as root on one server, attempting to restart tomcat on another using the tomcat init script)
The command on the local server executes, but never returns to the command prompt. Ctrl-C gets me back to the prompt, and tomcat is fine and running on the remote server. ps shows no connection on the remote machine, ps shows the ssh command on the local machine still running.
I can run other similar commands the same way with no problem (e.g. apache2, postgresql, mysql)
I can ssh to "remoteserver" and execute the command there without problems.
I think this may be an issue with ssh -- but this only seems to happen with tomcat. Has anyone seen this?
Both servers are configured identically: Ubuntu hardy, tomcat5.5, openJDK 6.0; I have done apt-get upgrade and everything is up to date.
ssh remoteserver /etc/init.d/tomcat55 restart
(running as root on one server, attempting to restart tomcat on another using the tomcat init script)
The command on the local server executes, but never returns to the command prompt. Ctrl-C gets me back to the prompt, and tomcat is fine and running on the remote server. ps shows no connection on the remote machine, ps shows the ssh command on the local machine still running.
I can run other similar commands the same way with no problem (e.g. apache2, postgresql, mysql)
I can ssh to "remoteserver" and execute the command there without problems.
I think this may be an issue with ssh -- but this only seems to happen with tomcat. Has anyone seen this?
Both servers are configured identically: Ubuntu hardy, tomcat5.5, openJDK 6.0; I have done apt-get upgrade and everything is up to date.