Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSH -D flag in config

Tags:

ssh

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?

like image 857
FloatingRock Avatar asked Sep 20 '25 21:09

FloatingRock


1 Answers

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
like image 100
ghoti Avatar answered Sep 23 '25 11:09

ghoti