[NTLUG:Discuss] X over SSH again...
brad angelcyk
bradangelcyk at yahoo.com
Tue Sep 30 09:53:57 CDT 2003
In /etc/ssh/ssh_config, is the following set?
ForwardX11 yes
If this isn't set, the "ssh" command isn't setting up
a tunnel between the 2 machines. If you don't have
that set, and you aren't using "ssh -X davidson" then
it will default to localhost:<nextavailablewindow>, I
believe. You can also force a "export
DISPLAY='gorky:10.0'" or whatever a "export | grep
DISPLAY" outputs on the 'gorky machine'.
Brad
--- "Cameron, Thomas"
<Thomas.Cameron at bankofamerica.com> wrote:
> Hrm...
>
> I *am* confused. If I'm on host foo and I ssh into
> the host bar, when I run "env | grep DISPLAY," it
> says foo:0.0. In other words, $DISPLAY is set to
> the machine I'm sitting in front of, not the host
> I'm ssh'ing into.
>
> What does /etc/hosts look like? Are you using dhcp
> to get your ip address?
>
> --
> Thomas Cameron, RHCE, CNE, MCSE, MCT
> Assistant Vice President
> Linux Design and Engineering
> Bank of America
>
> The opinions expressed in this message are mine
> alone and do not necessarily reflect the opinions of
> my employer, Bank of America.
>
> > -----Original Message-----
> > From: Stephen Davidson
> [mailto:gorky at freenet.carleton.ca]
> > Sent: Monday, September 29, 2003 2:49 PM
> > To: NTLUG Discussion List
> > Subject: Re: [NTLUG:Discuss] X over SSH again...
> >
> >
> > Hi Brad, Thomas.
> >
> > Ok, now we know that somebody is confused. The
> question is
> > who, what, and why.
> >
> > Gorky is the name of the machine I am logged into,
> from a
> > host named "davidson". So it looks like it is
> doing the
> > equivalant of setting DISPLAY=localhost:10.0.
> >
> > I should probaby mention that when I log into
> "davidson" from
> > gorky, DISPLAY=localhost:10.0 is what is set, and
> that does
> > work. However, DISPLAY=localhost:10.0 gives the
> > authentication exception (an earlier thread) when
> > logging in from "davidson" to "gorky".
> >
> > A quick overview of network in question;
> > gorky = laptop
> > davidson = workstation with 20" monitor
> >
> > Logging into davidson (workstation) from gorky
> (laptop) - GUIs work.
> > Logging into gorky(laptop) from
> davidson(workstation) - GUIs
> > do NOT work.
> >
> > Help?
> >
> > Regards,
> > Steve
> >
> > brad angelcyk wrote:
> > > Try a "host gorky" command. It might not be
> able to
> > > reverse that hostname. What you may need to do
> is a
> > > "export DISPLAY='<ipaddress>:10.0'". Or add
> "gorky"
> > > to your /etc/hosts file.
> > >
> > > Brad
> > >
> > >
> > >
> > > --- Stephen Davidson <gorky at freenet.carleton.ca>
> > > wrote:
> > >
> > >>Hi Brad.
> > >>
> > >>Your command returns;
> > >>declare -x DISPLAY="gorky:10.0"
> > >>
> > >>Regards,
> > >>Steve
> > >>
> > >>brad angelcyk wrote:
> > >>
> > >>>If you do a "export | grep DISPLAY", what does
> it
> > >>>return? BASH will autoset this environment
> > >>
> > >>variable
> > >>
> > >>>if you use the -X switch on the ssh command.
> > >>>
> > >>>Brad
> > >>>
> > >>>
> > >>>--- Stephen Davidson
> <gorky at freenet.carleton.ca>
> > >>>wrote:
> > >>>
> > >>>
> > >>>>Greetings.
> > >>>>
> > >>>>My X over SSH is acting up again. I did not
> > >>
> > >>change
> > >>
> > >>>>anything, so I have no idea what the problem
> is.
> > >>>>
> > >>>>Now, I am getting;
> > >>>>Error: Couldn't find per display information
> > >>>>
> > >>>>If anyone could give me a hint as to what is
> the
> > >>>>problem, and where, it would be greatly
> > >>
> > >>appreciated.
> > >>
> >
> > --
> > Java/J2EE Developer/Integrator
> > Co-Chair, Dallas/FortWorth J2EE Sig
> > 214-724-7741
> >
> >
> >
> > _______________________________________________
> > https://ntlug.org/mailman/listinfo/discuss
> >
>
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
More information about the Discuss
mailing list