LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-07-2005, 09:17 AM   #1
haxcess
LQ Newbie
 
Registered: Apr 2004
Location: Peterborough, Ontario, Canada
Distribution: Slackware 9 & 10
Posts: 13

Rep: Reputation: 0
Remote Access, reverse ssh


Here's the deal: I want to access a shell from the other side of the firewall. I can't ssh into the machine, because the firewall kills all incomming connections. So X is behind the firewall and O is me.

My idea was to make X initiate an SSH session to O, and then somehow O can use the tunnel.

I have root on both machines. My thoughts were to encrypt a script and have X download it with a cron job, decrypt and execute.

I just don't know how to reverse the connection. Any ideas?


Thanks a ton!
Alex.
 
Old 12-09-2005, 11:47 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
On X you would need to connect to O with:
ssh -R 2222:X:22 -l root -N O

Then from O you could connect to X with:
ssh -p 2222 O
 
  


Reply



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 reverse tunnel (lo only? why not eth0) Dinomight Linux - Networking 3 08-17-2006 09:44 PM
Remote access question. (ssh) JohnStormrider Linux - Networking 8 09-20-2005 04:32 PM
ssh and other remote access to a firewall. Insane? fipeso Linux - Security 9 05-04-2005 12:37 AM
reverse ssh? slashcom Linux - Software 3 08-12-2004 10:51 PM
Reverse SSH Tunnel sniggleflop Linux - Security 1 10-13-2002 01:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:17 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration