From the course: Linux Tips

Unlock this course with a free trial

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

SSH: Tunnels

SSH: Tunnels - Linux Tutorial

From the course: Linux Tips

SSH: Tunnels

- [Instructor] SSH is a whole lot more than just a remote text command line program. We can use it to replace a whole suite of network access applications, including copying files to remote servers, and even using GUI apps from the remote system on the local machine. We'll get to that in a while, but in this episode, I want to show you how to set up a tunnel that takes traffic from a port on a local machine to a port on a remote machine. This is very common for use with applications like database servers or development web servers, where the service isn't exposed to the internet, so we can't connect to it directly. But instead, we use a connection to an SSH server in order to get access to the resource. Using an SSH connection to port 22 or whatever the configured port on a remote server is, we sort of stop over on the SSH server, and appear to the protected resource like our traffic is coming from that SSH server, rather than from a computer on the outside. We can either connect to a…

Contents