From the course: CompTIA Linux+ (XK0-005) Cert Prep

Unlock the full course today

Join today to access over 24,300 courses taught by industry experts.

Tunnel data with SSH

Tunnel data with SSH

- [Instructor] A lot of protocols on Linux are not encrypted, such as X11 and VNC protocols used for remote graphical desktops, Rsync for remote file copies, or even some configuration management systems. All of these can utilize SSH for tunneling. Normally, when you use SSH to connect to another system you get a shell prompt. You can also execute commands on the remote host without logging into an interactive session by providing them as arguments on the command line. In any case, SSH creates a tunnel from the local host to the remote host, as well as handles any authentication. You can also send data through the SSH tunnel by piping it to the SSH command and running a program on the remote end to read from standard end and act on the data in some manner. In all of these examples, SSH is just acting as a remote shell but due to the flexibility and power of Linux data streams you're able to use SSH for tunneling tasks.…

Contents