Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Question about a reverse ssh tunnel, kinda

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
bobwhoops
n00b
n00b
Posts: 56
Joined: Sun Jan 09, 2005 10:12 pm

Question about a reverse ssh tunnel, kinda

  • Quote

Post by bobwhoops » Fri Aug 18, 2006 9:18 pm

I'm not sure if that's what you'd use for this problem. This is my situation:

My school just implemented some stuff with vlans, firewalls, subnetting, etc. Now, I can't externally ssh to my machine. What I can do, however, is externally ssh to a school server, and internally ssh to it. I can't ssh from the server to my machine though.

So, I need a way to ssh to my machine externally. I don't think a reverse ssh tunnel will work because I can't ssh from the server to my machine. I was thinking of something like sshing to the server from my machine, setting up a screen session, then externally sshing to the machine, connecting to the screen session, and then hijacking the connection, although I don't really know how to do that (though I could probably figure out by reading some man pages)

Will this solution work? Is there something a lot easier that would work?

Thanks
Top
Raffi
l33t
l33t
User avatar
Posts: 731
Joined: Mon Mar 17, 2003 1:32 am
Location: Moscow, Id.

Re: Question about a reverse ssh tunnel, kinda

  • Quote

Post by Raffi » Sat Aug 19, 2006 4:14 am

bobwhoops wrote: My school just implemented some stuff with vlans, firewalls, subnetting, etc. Now, I can't externally ssh to my machine. What I can do, however, is externally ssh to a school server, and internally ssh to it. I can't ssh from the server to my machine though.
You lost me here, so let me ask what you can do once you are on the school server.

Can you access any ports on internal machines? Can you access anything on external machines? Do you have control of any internal machines?
Top
James Wells
n00b
n00b
User avatar
Posts: 57
Joined: Fri Sep 10, 2004 4:26 pm

  • Quote

Post by James Wells » Sat Aug 19, 2006 4:24 am

Greetings,

Not sure if it will be valuable to you, but I would suggest looking at corkscrew for ssh. This will allow you to SSH using the web proxy on your network. Is a very power tol for SSH.
Top
xming
Guru
Guru
User avatar
Posts: 441
Joined: Tue Jul 02, 2002 7:32 pm
Contact:
Contact xming
Website

  • Quote

Post by xming » Sat Aug 19, 2006 9:59 am

ssh from internal (school) machine to external (internet) machine with port forward to create a reverse ssh tunel.

from int to ext

Code: Select all

ssh -R 2222:localhost:22 external.machine.com
leave this ssh session running, optonal in a screen session

then from ext

Code: Select all

ssh -p 2222 localhost 
http://wojia.be
Top
Post Reply

4 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic