Answer the question
In order to leave comments, you need to log in
How to set config for ssh tunnel?
Greetings, I want to tunnel through an ssh connection, I do it with the command
ssh -D 81 -N -f -i /path_to_private_key [email protected]
Everything is fine, the only thing I want to do is write it all in the config so that I don’t have to enter it every time.
Simple connections are written simply -
Host myhost
HostName myhost.com
User user
IdentityFile ~/.ssh/id_rsa
And how to add -D 81 -N -f here?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question