SliTaz SliTaz Forum

You are not logged in.

#1 2013-01-28 17:26:34

kitty____
Member
Registered: 2012-12-06
Posts: 36

X-forwarding not works > Pascal : /usr/bin/sshx tutorial please

I have installed openssh on both PC

ssh -X can connekt, works, but only commandline

when try any grafical application run, I get:

tux@slitaz:~$ ssh -X  kitty@......

Secure login on SliTaz GNU/Linux powered by Dropbear SSH server.

kitty@.....'s password:

Warning: No xauth data; using fake authentication data for X11 forwarding.

  Welcome to the Open Source World!

  SliTaz GNU/Linux is distributed in the hope that it will be useful,

  but with ABSOLUTELY NO WARRANTY.

kitty@Kitty_:~$ leafpad

Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyleafpad: Can not open display:

(Google hints me about "xhost +" but "xhost not found")

Can anybody succesfully use X-forwarding in Slitaz, and tell how to do it? Thank you for any hint

Offline

#2 2013-01-28 23:27:59

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: X-forwarding not works > Pascal : /usr/bin/sshx tutorial please

Same error here with openssh client on slitaz 4 and cooking:

ssh -Y host@i.p. address

/etc/ssh/ssh_config :

ForwardX11Trusted yes

ForwardX11 yes

Slitaz 3.0 and debian clients run X apps on the same server with no problem.

Offline

#3 2013-01-28 23:47:18

kitty____
Member
Registered: 2012-12-06
Posts: 36

Re: X-forwarding not works > Pascal : /usr/bin/sshx tutorial please

Nothing change; all errors the same ><

Can you tell me, please, step-by-step, what I need to do, after install slitaz-core 4.0?

Offline

#4 2013-01-29 02:51:54

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: X-forwarding not works > Pascal : /usr/bin/sshx tutorial please

root@slitaz:/home/tux# strings /usr/bin/ssh | grep xauth

/usr/X11R6/bin/xauth

xauthlocation

No xauth program.

%s/xauthfile

Warning: untrusted X11 forwarding setup failed: xauth key data not generated

Warning: No xauth data; using fake authentication data for X11 forwarding.

[c]# mkdir -p /usr/X11R6/bin[/c]

[c]# ln -s /usr/bin/xauth /usr/X11R6/bin[/c]

Works:

[c]ssh -Y host@ip address[/c]

Fails:

[c]ssh -X host@ip address[/c]

Offline

#5 2013-01-29 09:46:05

kitty____
Member
Registered: 2012-12-06
Posts: 36

Re: X-forwarding not works > Pascal : /usr/bin/sshx tutorial please

I am happy now! thank you very very much!

it works! (some note for newbies: it require openssh and most be executed on both PC)

This is one reason why I love so much Slitaz - here a very friendly community, which quickly and immediately and thoroughly explains all for newbies (as I) This is a huge advantage over other Linux distributions. ^^

Offline

#6 2013-01-29 09:49:41

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: X-forwarding not works > Pascal : /usr/bin/sshx tutorial please

Try:

$ sshx host@ip address

Or upgrade xorg-xauth

http://hg.slitaz.org/wok-stable/rev/c703ad69b608

http://hg.slitaz.org/wok/rev/6d1e49695497

Offline

#7 2013-01-29 10:21:19

kitty____
Member
Registered: 2012-12-06
Posts: 36

Re: X-forwarding not works > Pascal : /usr/bin/sshx tutorial please

Mr. Bellard, thank you very much for your wok-changeset!

Offline

#8 2013-02-11 20:21:26

tkoun
Member
Registered: 2012-12-04
Posts: 21

Re: X-forwarding not works > Pascal : /usr/bin/sshx tutorial please

or add in /etc/ssh/ssh_config

Host *

   XAuthLocation /usr/bin/xauth

it also works

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 8 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]