1821587 Members
3386 Online
109633 Solutions
New Discussion юеВ

X forwing + ssh

 
nightwich
Valued Contributor

X forwing + ssh

Hi Gurus

I have the following situation.

I upgrade my ssh version and I get some trouble.
When I log-on in to the machine "xpto" the X work fine, but when I log-on from machine "xpto" to another one by ssh I get the error message:

Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.


Xlib: connection to "localhost:10.0" refused by server
Xlib: PuTTY X11 proxy: MIT-MAGIC-COOKIE-1 data did not match
Error: Can't open display: localhost:10.0

Any ideas what is the problem or how can I solve this problem?

Thanks in advance

Regards
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: X forwing + ssh

Shalom,

check the DISPLAY variable.

consider using ssh -X hostname

to connect and work properly with GUI apps.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
nightwich
Valued Contributor

Re: X forwing + ssh

Hi

Thanks by thy reply

The DISPLAY variable seems to be ok.. I also have try the option -X in ssh.

I get the same error :S

Regards
rariasn
Honored Contributor

Re: X forwing + ssh

Hi,

$ ssh -Y

rgs,
Doug O'Leary
Honored Contributor

Re: X forwing + ssh

Hey;

Check the ssh_config on xpto: X11 Forwarding is usually turned off by default in the ssh_config.

My ssh_config is in /opt/ssh/etc/ssh_config.

Change

# ForwardX11 no

to

ForwardX11 yes

I usually update the Host* section to the following:
Host *
ForwardAgent yes
ForwardX11 yes
Protocol 2


------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
nightwich
Valued Contributor

Re: X forwing + ssh

Hi

I don't have -Y option.

In my sshd_config I have the following options:

ListenAddress 0.0.0.0

AllowTcpForwarding yes
X11Forwarding yes
X11UseLocalhost yes

I already do a intensive search on web but i still have this problem

Any ideas?

Regards
rariasn
Honored Contributor

Re: X forwing + ssh

ssh -Y hostname appname

Sample:

ssh -Y hostname "/usr/dt/bin/hpterm -bg DarkGreen -fg white -title "G:HOSTNAME" -e /opt/perf/bin/glance" &

rgs,
nightwich
Valued Contributor

Re: X forwing + ssh

Hi Gurus


I altready solv the problem.

The truck is enable the ForwardX11Trusted

I put in my ssh_config the option:
ForwardX11Trusted yes


Regards
nightwich
Valued Contributor

Re: X forwing + ssh

Hi


Resolved by my previous post.

Regards