L
L
lagudal2020-03-23 11:23:19
SSH
lagudal, 2020-03-23 11:23:19

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

1 answer(s)
F
FanatPHP, 2020-03-23
@lagudal

DynamicForward 81

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question