LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-06-2008, 05:29 PM   #1
teayourself
LQ Newbie
 
Registered: May 2008
Posts: 2

Rep: Reputation: 0
ssh server proxy


Im was not sure were to post this, so here i am.

The situation is like this:
PC (A) runs linux and ssh server and its behind a firewall. (privs:root)
PC (C) has direct access to the internet. (privs: root)

In the parenthesis i have written down my privs to each server.
I would like to be able to ssh to PC (A) from PC(C).
I have tried doing some ssh tunnels to be able to do that, but i had no luck. This is what i tried:

ssh -x -e none -l <username> -L 7777:<PC (A)>:22 <PC (C)>

in order to be able to do an "ssh <username@<PC (C)> -p 7777" and that would redirect me to <PC (A)>.


Is there something im doing wrong ? Is there any kind of ssh "proxy" that i could use ?


Thanks in advance and please forgive any grammar errors i've made, english is not my native language
 
Old 05-06-2008, 06:44 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531
The tunnel config examples in http://souptonuts.sourceforge.net/sshtips.htm could help.
 
Old 05-06-2008, 07:02 PM   #3
beadyallen
Member
 
Registered: Mar 2008
Location: UK
Distribution: Fedora, Gentoo
Posts: 209

Rep: Reputation: 36
You've got mixed up. The entry point to the tunnel is on the local machine, not A or C, so you want to connect with 'ssh -p 7777 user@localhost'
 
Old 05-07-2008, 02:46 AM   #4
teayourself
LQ Newbie
 
Registered: May 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by beadyallen View Post
You've got mixed up. The entry point to the tunnel is on the local machine, not A or C, so you want to connect with 'ssh -p 7777 user@localhost'
I do have it mixed up ^^. But that is what i was doing im afraid. I have set up the port tunnel in the mashine i would like to to shh (that is behind a firewall) to a mashine that i have access to, and then ssp -p 7777 <username>@<"mashine that i have access to"> and that didnt worked.

@unSpawn: In that example the laptop (outside mashine, or in my case PC (A), can access a mashine with ssh inside the network (PC (C)). In my case you cant do that. Im afraid i cant generallize that example to fit in my case

ps.: i have also tried the localhost ssh, no luck.
 
  


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
how to use ssh to make a proxy server joe2748 Linux - Networking 7 02-23-2008 12:17 PM
Accessing SSH from behind a proxy server rbkool Linux - Networking 3 08-25-2007 11:12 AM
Trying to SSH through a proxy server Scotteh Linux - Networking 10 05-31-2006 08:03 AM
SSH connection through companies proxy server rydl Linux - Networking 2 10-26-2005 10:08 AM
Does anyone have a guide for setting up SSH.Proxy server? martinj Linux - Networking 2 06-18-2005 03:39 AM


All times are GMT -5. The time now is 05: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration