Using SSH port forwarding on Fedora

Click for: original source

Posted by Paul W. Frields. The protocol behind ssh allows terminal input and output to flow through a secure channel. You can also use ssh to send and receive other data securely.

A standard Linux system has a set of network ports already assigned, from 0-65535. Your system reserves ports up to 1023 for system use. Quite a few ports are commonly expected to run specific services. You can find these defined in your system’s /etc/ services file.

You can think of a network port like a physical port or jack to which you can connect a cable. That port may connect to some sort of service on the system, like wiring behind that physical jack. An example is the Apache web server (also known as httpd). The web server usually claims port 80 on the host system for HTTP non-secure connections, and 443 for HTTPS secure connections.

Further information in this article:

  • Local port forwarding
  • Remote port forwarding

Finally, remember port forwarding only happens as long as the controlling ssh session is open. Sweet and short!

[Read More]

Tags linux software infosec