Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
multiple ssh connections (port forwarding automaticly)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
pi-cubic
Tux's lil' helper
Tux's lil' helper


Joined: 25 May 2003
Posts: 143

PostPosted: Thu Nov 06, 2003 8:49 pm    Post subject: multiple ssh connections (port forwarding automaticly) Reply with quote

hi there,
i searched the forums but my pattern didn't match my expectations. so this is my problem:
i wanna create multiple ssh tunnels in one script (to forward many ports automaticly), but don't know how to realize this.

if it was possible, i did it that way:

ssh user@remote.host -L 873:rsync.mirror:873 -L 1125:smtp.server:25 -L 6667:irc.server:6667 -L 8989:another.server:8989 -L .....etc

can anyone give me a hint howto realize this idea?

thx in advance...

pi-cubiq
Back to top
View user's profile Send private message
paranode
l33t
l33t


Joined: 06 Mar 2003
Posts: 679
Location: Texas

PostPosted: Thu Nov 06, 2003 9:06 pm    Post subject: Reply with quote

You seem to have the right idea already. I think the user@remote.host comes after the forwarding options.

Does it work when you try that?
_________________
Meh.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum