23

I want to forward multiple ports. So far my configuration looks like this:

Host myhost Hostname 123.123.123.123 IdentityFile ~/.ssh/id_myhost LocalForward 8811 localhost:8811 IdentitiesOnly yes 

I would like to forward port 6006 in addition to 8811.

1 Answer 1

48

It is possible to add multiple lines of LocalForward:

Host myhost Hostname 123.123.123.123 IdentityFile ~/.ssh/id_myhost LocalForward 8811 localhost:8811 LocalForward 6006 localhost:6006 IdentitiesOnly yes 

Is this what you want?

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.