Multiple Session using port 1081 in one box using SSH

Posted by regmaster on Server Fault See other posts from Server Fault or by regmaster
Published on 2010-04-30T18:46:08Z Indexed on 2010/04/30 18:49 UTC
Read the original article Hit count: 170

Filed under:
|

Hi Guru's,

I am setting Linux Hopping Station to another different servers.

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

e.g

ssh -D 1080 -p 22 [email protected]

ssh -D 1081 -p 22 [email protected]

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

ssh -D 1080 -p 22 [email protected]

ssh -D 1080 -p 22 [email protected]

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.

© Server Fault or respective owner

Related posts about ssh

Related posts about ssh-tunnel