Unix Technical Forum

ssh via 3 machines

This is a discussion on ssh via 3 machines within the comp.unix.solaris forums, part of the Solaris Operating System category; --> HI, I am trying to connect tree machines, SUN1-LINUX-SUN2 via ssh. After doing a ssh -X user@LINUX I use ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-06-2008, 07:37 AM
Michael Laajanen
 
Posts: n/a
Default ssh via 3 machines

HI,

I am trying to connect tree machines, SUN1-LINUX-SUN2 via ssh.

After doing a ssh -X user@LINUX I use telnet to SUN2, but what should I
set the DISPLAY to?

Or is it not possible to get back into the ssh tunnel from SUN2!

/michael
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-06-2008, 07:37 AM
Dragan Cvetkovic
 
Posts: n/a
Default Re: ssh via 3 machines

Michael Laajanen <michael.laajanen.no-spam.@telia.com> writes:

> HI,
>
> I am trying to connect tree machines, SUN1-LINUX-SUN2 via ssh.
>
> After doing a ssh -X user@LINUX I use telnet to SUN2, but what should I set
> the DISPLAY to?
>
> Or is it not possible to get back into the ssh tunnel from SUN2!
>


Why don't you ssh from Linux machine to SUN2? If all 3 machine support
X-forwarding, using ssh you won't need to worry about DISPLAY.

It works for me, anyway.

Bye, Dragan

--
Dragan Cvetkovic,

To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer

!!! Sender/From address is bogus. Use reply-to one !!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-06-2008, 07:38 AM
Michael Laajanen
 
Posts: n/a
Default Re: ssh via 3 machines

HI,
Dragan Cvetkovic wrote:
> Michael Laajanen <michael.laajanen.no-spam.@telia.com> writes:
>
>
>>HI,
>>
>>I am trying to connect tree machines, SUN1-LINUX-SUN2 via ssh.
>>
>>After doing a ssh -X user@LINUX I use telnet to SUN2, but what should I set
>>the DISPLAY to?
>>
>>Or is it not possible to get back into the ssh tunnel from SUN2!
>>

>
>
> Why don't you ssh from Linux machine to SUN2? If all 3 machine support
> X-forwarding, using ssh you won't need to worry about DISPLAY.
>
> It works for me, anyway.


SUN2 does not have SSH installed.

Any idea how to do it then?


/michael

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-06-2008, 07:38 AM
Fredrik Lundholm
 
Posts: n/a
Default Re: ssh via 3 machines

In article <goWRb.46721$mU6.177578@newsb.telia.net>,
Michael Laajanen <michael.laajanen.no-spam.@telia.com> wrote:
>HI,
>Dragan Cvetkovic wrote:
>> Michael Laajanen <michael.laajanen.no-spam.@telia.com> writes:
>>
>>
>>>HI,
>>>
>>>I am trying to connect tree machines, SUN1-LINUX-SUN2 via ssh.
>>>
>>>After doing a ssh -X user@LINUX I use telnet to SUN2, but what should I set
>>>the DISPLAY to?


when you are logged in on the Lunix machine, check you DISPLAY varaible.
It is probably lunixhostname:11.0 or somesuch.
After you telnetted tou the might Sun2, set the DISPLAY to lunixhostname:11.0

Be happy.
/Fredrik


--
Fredrik Lundholm
dol @ ce.chalmers.se

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-06-2008, 07:38 AM
Rich Teer
 
Posts: n/a
Default Re: ssh via 3 machines

On Wed, 28 Jan 2004, Michael Laajanen wrote:

> SUN2 does not have SSH installed.
>
> Any idea how to do it then?


Install ssh on SUN2. ;-)

If that's not an option, shoot the sysadmin. After that,
try echo $DISPLAY on the LInux box, and then set DISPLAY
to that on SUN2. You'll probably have to mess about with
xauth and/or xhost; installing ssh on SUN2 is the far better
option!

--
Rich Teer, SCNA, SCSA

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-online.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-06-2008, 07:38 AM
Oscar del Rio
 
Posts: n/a
Default Re: ssh via 3 machines


> Install ssh on SUN2. ;-)
>
> If that's not an option, shoot the sysadmin. After that,
> try echo $DISPLAY on the LInux box, and then set DISPLAY
> to that on SUN2.


unless it is "localhost:10" in that case the OP is stuck
with options 1 or 2 (install ssh or shoot the sysadmin) :-)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-06-2008, 07:38 AM
Michael Laajanen
 
Posts: n/a
Default Re: ssh via 3 machines

HI,

Oscar del Rio wrote:
>
>> Install ssh on SUN2. ;-)
>>
>> If that's not an option, shoot the sysadmin. After that,
>> try echo $DISPLAY on the LInux box, and then set DISPLAY
>> to that on SUN2.

>
>
> unless it is "localhost:10" in that case the OP is stuck
> with options 1 or 2 (install ssh or shoot the sysadmin) :-)
>

Yes I have tried to set DISPLAY before I posted, and since I think
tunneling from jail is even harder we have to install ssh

Hmm, that was actually quite fun ) even though most people in jail is
jumping over fences today so maybe a tunnel would be possible since
nobody is checking that one...

Maybe time to get S9 and get SSH directly.

/michael
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-06-2008, 07:38 AM
Oscar del Rio
 
Posts: n/a
Default Re: ssh via 3 machines


> Maybe time to get S9 and get SSH directly.


yup, that's a good option too.
Just remember to turn on x-forwarding in /etc/ssh/sshd_config
it is off by default

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-06-2008, 07:39 AM
Thomas Glanzmann
 
Posts: n/a
Default Re: ssh via 3 machines

Hi,

> SUN2 does not have SSH installed.
> Any idea how to do it then?


use the packages available from www.blastwave.org

Thomas
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-06-2008, 07:46 AM
Phil Brown
 
Posts: n/a
Default Re: ssh via 3 machines

On Wed, 28 Jan 2004 22:07:08 +0000, Michael Laajanen wrote:

> HI,
> Dragan Cvetkovic wrote:
>> Michael Laajanen <michael.laajanen.no-spam.@telia.com> writes:
>>
>> ...
>>>I am trying to connect tree machines, SUN1-LINUX-SUN2 via ssh.
>>>

>
> SUN2 does not have SSH installed.
>


so install it.

even if you are not root... if there is not a firewall in the way, you can
copy over an sshd binary, cobble together the appropriate hacky config
file, force sshd to point to it in your home directory, and run it on a
port >1024


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:03 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com