I am connecting to a remote machine through OpenSSH client from Windows 10. It is an Open SSH server installed on Windows server 2016.

I usually run tomcat 7 from such ssh session. But, as soon as I end the session, tomcat server shuts down as well. I run tomcat7.exe directly from its installation folder.

I have used &! at the end of the command to ensure that the process doesn't get attached to the terminal. But, couldn't achieve the desired result. Kindly suggest how to detach such processes from the ssh client.

1 Answer 1


tomcat7.exe start and tomcat7.exe stop these two commands ensure that tomcat starts as a service. Worked like a charm for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.