December 2018
Beginner
826 pages
22h 54m
English
When you add the -D option to SSH, or add the DynamicForward option to your SSH config file, you're telling SSH that you want to specify a port on your local side that will forward any requests received to it over your SSH connection.
Let's break down our commands:
[vagrant@centos1 ~]$ ssh -f -D9999 192.168.33.11 sleep 120
First, as we did previously, we've used -f and sleep to keep a connection open, while dropping us back to the centos1 prompt once a connection is established:
-f ... sleep 120
We've also specified our -D option, with a randomly chosen port:
-D9999