How To Do Port Forwarding Using SSH - Used By Professionals

As we all know the role of port forwarding is most important in the field of ethical hacking and pen testing to deal with wide area network devices. So today I’m going to show you the best and genuine way used by professionals to do port forwarding .

Requirements:-

  • SSH
  • Apache2

We are going to use SSH (Secure Shell ) portocoal network service to do port forwarding as we know it’s used for remote login into machines and here we going to show you two different methods to do port forwarding using ssh.

  1. Simple Port Forwarding

  2. Port Forwarding With Subdomain

Simple Port Forwarding:-

In this method we are going to use serveo server with ssh.

$ sudo service apache2 start

$ ssh -P port:Your-IP-Address:port serveo.net

image

Port Forwarding With Subdomain:-

In this method we are going to use subdomain with localhost.

$ sudo service apache2 start

$ ssh -P port:Your-IP-Address:port ssh.subdomain.localhost.run

image

I hope this information is helpful for you, thanks for reading!

(Source: hackersking)

4 Likes