From the course: Learning SSH

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Local port forwarding

Local port forwarding - SSH Tutorial

From the course: Learning SSH

Local port forwarding

- [Instructor] Local port forwarding allows us to specify a port on our local system that will send traffic to a particular port on the remote system. This is often used to make protected services on the remote server available locally on the client, for example, a protected database server that isn't normally accessible outside of a private network. Using local port forwarding, we can work with a service as though it were running on our local system while we're connected to the remote system using SSH. In this example, we make the service running on port 3306 on the remote server which is a common port for database server available on port 3333 on our local system. Software we run locally would be able to communicate with this port and use the remote database server as though it were running locally. In this context, the address' localhost in the command refers to the remote server. This could also be one specific bind…

Contents