I'm using SSH to direct my local internet traffic to a remote machine, using the following command:
ssh -D 4321 -N -v user@server
How do I add an entry to my .ssh/config file so that I can simple do ssh user@server?
Specifically, how do I map the -D option to it's config-equivalent?
The equivalent .ssh/config entry for the -D option is DynamicForward. It takes the same options as -D, and is applied on a per-host basis.
host server
Username user
DynamicForward localhost:4321
RequestTTY no
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With