Reputation: 7065
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?
Upvotes: 4
Views: 2951
Reputation: 46856
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
Upvotes: 5