I wanted to trouble shoot a certain issue on the server, but I could not connect my debugger since the person who maintains the firewall is off on a vacation. I dont want to mess with his settings. He has given me admin password though.
So for my purpose I need to attach a debugger to a Java program running on the server. When I do "jdb -attach port" on the server via ssh it works. I want to use eclipse in my machine to connect to that port. So this is what I think is the best thing to do in my situation.
Run a program listening on the server, run a program on my machine and make them talk thru SSH. Then my eclipse will connect to the local program which will talk to the servers local application which will attach me to the JVM process. (Profit!!!:)
I am not sure how to do this. I have a vague idea that I should be using netcat. But can you please help me with how to launch netcat or any other program for this purpose on both ends.
Your help is greatly appreciated. Thank You.