Hi,

Long time since I've posted anything here... but hey.

X11 forwarding for ssh takes it's DISPLAY from the environment where it is 
called.  So the correct command sequence is... (assuming tcsh under OS X)

setenv DISPLAY localhost:0.0
ssh -X [EMAIL PROTECTED]

it is also a good idea to enable compression when doing X11 forwarding as it's 
pretty verbose, repetitous stuff, so that last command becomes...

ssh -X -C [EMAIL PROTECTED]

Hope this helps.

Regards,
        Nathan CAllahan

On Friday 14 June 2002 16:49, Jeremy Higgs wrote:
> On 14/6/02 11:49 AM, "Jeremy Erwin" <[EMAIL PROTECTED]> wrote:
> > On Thursday, June 13, 2002, at 08:00  PM, Shaofeng Yang wrote:
> >> Hello,
> >> I want  to connect to another linux machine using x windows from fink.
> >> I mean I want to display the gui of that linux machine?
> >> Anybody can help me out?
> >> Thanks a lot.
> >
> > assume two machines linux.remotedomain, and macosx.localdomain
> >
> > [macosx:~] username% ssh -X [EMAIL PROTECTED]
> > [EMAIL PROTECTED]'s password:
> >
> > linux%  xcalc &
> >
> > xcalc should then display on your terminal
> >
> > by the way, if, for some reason, the ssh X11 forwarding fails, try
> >
> > linux% DISPLAY = macosx.localdomain:0.0
> >
> > There's a number of ways, besides ssh to authenticate X11 connections.
> > xauth is considerably more secure than xhost.
> >
> > To initiate xauth
> >
> > [macosx:~] username% xauth list
> > This should list something along the lines of
> > macosx.localdomain MIT-MAGIC-COOKIE-1 33dda2aa76a....
> >
> > if it doesn't
> >
> > [macosx:~] username% xauth generate :0
> >
> > on the remote machine
> >
> > linux% xauth add <xauth line>
> >
> > where <xauth line> is the relevant output from the "xauth list" command.
> >
> > Jeremy Erwin
>
> Hi!
>
> (just thought I'd chime into the discussion here... I'm currently using VNC
> to view applications on my linux mp3 server, but it'd be nice to view them
> from my MacOS X machine...)
>
> I put in the following (after doing 'ssh -X [EMAIL PROTECTED]'):
>
> jeremy@simba:~$ export DISPLAY=192.168.0.2:0.0
> jeremy@simba:~$ xcalc &
> [1] 16527
>
> And got this:
>
> jeremy@simba:~$ Xlib: connection to "192.168.0.2:0.0" refused by server
> Xlib: No protocol specified
>
> Error: Can't open display: 192.168.0.2:0.0
>
> Any ideas? I also tried the 'xauth' method, and received the same error...
> (I have OroborOSX open, so Xdarwin is running.)
>
> Thanks!
>
>
> _______________________________________________________________
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -
> http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>
> _______________________________________________
> Fink-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/fink-users


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to