Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am setting Linux Hopping Station to another different servers.

My current config to connect to another servers is using different port to connect.


ssh -D 1080 -p 22

ssh -D 1081 -p 22

Now what I would like to have to share the same port from the same box.

ssh -D 1080 -p 22

ssh -D 1080 -p 22

But when I share it, I will get below error:

bind: Address already in use channel_setup_fwd_listener: cannot listen to port: 1080 Could not request local forwarding.

How could I configure the same port? help. thank you.

I want to share the same port because this is needed when configuring firewall in Citrix Firewall on other machine, not needed to many many ports and keep changing when changing connection.

thank you.

share|improve this question
Why do you need more then one connection? The -D port number selected should not make an difference to the any computer other then on ssh client, and by default that will listen on the loopback interface which is usually immune from firewall blocking. – Zoredache Apr 30 '10 at 19:45

You can only do that if you have two different IP addresses on that machine. If it's only for local usage, you can use the address space like in:

ssh -D -p 22
ssh -D -p 22
share|improve this answer
Hi Joao, still i m getting the same error. is it possible for for you to guide me? thanks – regmaster May 13 '10 at 16:54
Any chance that port 1080 will be occupied in the client machine? Please post the output of netstat -nat | grep 1080 to check. – jneves May 13 '10 at 17:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.