search

Loading
Showing posts with label ssh tips. Show all posts
Showing posts with label ssh tips. Show all posts

Thursday, November 22, 2012

How to port forward remote port to local machine using ssh [trouble shooting remote server apps in local machine]

Some times, you may need to test a remote application (GUI app) which is running in a linux server. As it is a server, we cannot test the app from the server as there is no GUI for the server. The app can be accessed over a web browser though. But for some other reasons, you are not able to access it through the web browser using the server's ip address. So our first purpose is the trouble shoot the issue. Whether the app is actually running in the server with all the features enabled?

We can ssh to the server and check the whether the app is running using ps -ef | grep appname command. Then we found out that the app is actually running in the server. But why we are not able to access it through server's ip address and the port? Here comes the rescuer in the form of port forwarding.