LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-03-2004, 08:14 AM   #1
nsanity
LQ Newbie
 
Registered: Aug 2003
Posts: 5

Rep: Reputation: 0
SSH Tunnel not working... "Administratively Probihited..."


I'm trying to access some stuff behind a router, and the only access I have is port 22 and 23. I really need to open up ports, but if you have ever configured a linksys or smc router with links you are missing a lot of fun (not to mention aggravation). I want to be able to connect to port 4000 and have it forward remotely through the router to the router. My command line at the moment looks like:

ssh -2 -p 22 -l root -R 20000:192.168.2.1:80 -n remote.box

I also tried ssh tunneling to a local port:

ssh -L 16000:remote.box:80 remote.box

And then running netcat to tunnel the connections to the router on the other side, but alas... when I did that I got the following message:

debug1: channel 2: net [direct-tcpip]
channel 2: open failed: administratively prohibited: open failed
debug1: channel 2: free: direct-tcpip: listening port 16000 for remote.box port 2000, connect from 127.0.0.1 port 32807, nchannels 3

I am almost thinking there is a configuration error or something, but I have never had a problem port forwarding before. Any help is greatly appreciated.
 
Old 01-03-2004, 12:51 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
I'm not sure why you are using net cat and not just ssh. Can you clarify a bit?
 
Old 01-03-2004, 01:04 PM   #3
nsanity
LQ Newbie
 
Registered: Aug 2003
Posts: 5

Original Poster
Rep: Reputation: 0
I was just experimenting... trying to get it to work. I hadn't messed with it using the -R command line option..
 
Old 01-03-2004, 01:25 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Ok - If it is as I think, you can do it without netcat at all - am I right with the following:
Code:
 _____     ________                _________     ______
|     |   |        |              |         |   |      |
| You |---|Router 1|--{Internet}--| Router2 |---|Server|
|_____|   |________|              |_________|   |______|
You want to ssh to linux router 2 which has the public IP and connect to port 80 on Server (192.168.2.1). Then when you connect to http://lcoalhost:4000 you get the web page from Server?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH issue ""Server unexpectedly closed network connection" Errsta_Fonzarelli Linux - Software 12 05-24-2010 02:35 PM
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
commands "init" and "modprobe" not working Diagmato Fedora 2 07-22-2005 11:44 PM
"socks5" -> "http" proxy protocol, or ssh tunnel to sock5 ? I'm beyond http p vmicho Linux - Networking 2 12-16-2003 05:32 AM


All times are GMT -5. The time now is 11:53 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration