Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using one host computer and an embedded board(ARM processor linux)..
Both are in the same network..
ssh is happening properly between two systems..
But I can't open display(e.g.,aterm) between either systems when I did ssh ..
X forwarding is happening between other systems in the network..
But cant do x forwarding w.r.t.embedded board..
Here are some outputs I got..
Code:
(From host to board)
[vasudha@localhost ~]$ ssh -X -vvv root@192.168.1.57
OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.1.57 [192.168.1.57] port 22.
debug1: Connection established.
debug3: Not a RSA1 key file /home/vasudha/.ssh/id_rsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
.
.
debug2: callback start
debug2: x11_get_proto: /usr/bin/xauth list unix:10.0 2>/dev/null
Warning: No xauth data; using fake authentication data for X11 forwarding.
debug1: Requesting X11 forwarding with authentication spoofing.
.
.
.
.
debug2: channel 0: request shell confirm 0
debug2: fd 3 setting TCP_NODELAY
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug1: Remote: No xauth program; cannot forward with spoofing.
debug2: channel 0: rcvd adjust 131072
Last login: Thu Jan 1 03:00:38 1970 from 192.168.1.60
[root@INN /root]$aterm
aterm: can't load font "7x14"
config_geom = 501x316
root_geom = 501x316+4+30, root_size = 640x480
(Here it hangs for ever..)
(From board to host..)
[root@INN board]$ssh -X -vvv vasudha@192.168.1.60
OpenSSH_3.7.1p2, SSH protocols 1.5/2.0, OpenSSL 0.9.7b 10 Apr 2003
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug3: RNG is ready, skipping seeding
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.1.60 [192.168.1.60] port 22.
debug1: Connection established.
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
.
.
.
debug3: tty_make_modes: 92 0
debug3: tty_make_modes: 93 0
debug1: No xauth program.
Warning: No xauth data; using fake authentication data for X11 forwarding.
debug1: Requesting X11 forwarding with authentication spoofing.
debug2: channel 0: request x11-req
debug2: channel 0: request shell
debug2: fd 3 setting TCP_NODELAY
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 131072
Last login: Thu Mar 13 15:41:20 2008 from 192.168.1.57
[vasudha@localhost ~]$ xterm
_X11TransSocketINETConnect() can't get address for localhost:6010: Temporary failure in name resolution
xterm Xt error: Can't open display: localhost:10.0
[vasudha@localhost ~]$
(it willnot hang here..no display also..)
*In /etc/ssh/sshd_config of both the systems, I did,..
X11Forwarding yes
Can anyone tel me why I am getting these types of warnings..?
Can you tell me the steps to resolve this ??
Thanks in advance..
Last edited by vasudharao; 03-13-2008 at 10:52 PM.
hashbangbinbash ~ # ddd
Error: Can't open display:
ddd is just a debugging tool, and there were no errors on the -vvv output. I've tried using ssh with -X as well as -Y but with the same error message. Any suggestions?
Last edited by hashbangbinbash; 03-13-2008 at 12:11 PM.
I searched in google..its mentioned one place that if you get warning
"No xauth data; using fake authentication data for X11 forwarding"then you should add "XAuthLocation /usr/bin/xauth" to /etc/ssh/ssh_config..I did the same but facing same problem..
Anyone know about this issue..??
Thank you..
Last edited by vasudharao; 03-14-2008 at 12:28 AM.
Are you sure you made the changes to the /etc/ssh/sshd_config and not the ssh_config that has caught me out a number of times - Also as a simple test try ssh -o ForwardX11=yes user@host I use this method for a few things but should work fine for xterm gnome-terminal etc etc infact I have no problems with it for everything! Hope this helps.. Also on another note this even works on most systems with the sshd_conf set to (x11forwarding no) I guess because I am not forwarding the whole xserver.
Hey..X forwarding is happening in one direction.. i.e.,I can see gedit window of my system on my board's screen..what I did is..I have added
"nameserver xxx.xxx.xxx.xxx" to /etc/resolve.conf file..
But from host to board x forwarding is not happening..i.e., when I did aterm (after ssh with -X from host to board)in board,window displayed on the board,but in host no display..
/etc/resolve.conf files are similar in both the systems..
what may be other issue..??
Last edited by vasudharao; 03-18-2008 at 12:36 AM.
vasudharao, I didn't get it. What are you calling the board?
how to use xauth :
xauth gives you the authorithy to open a window on the X server is authentification is activated on the X server. Normally, authorithy keys are handled automatically by ssh when you do -X. -Y is for when authorithy is not activated on the X server (the X server is the ssh client).
Th handle xauth manually, you can do a "xauth -extract filename $DISPLAY" to extract the authorization you have with your user to open a window to a file named filename. Then, you have to scp this file to where you connect to with ssh. You can then merge this authorisation with the sshed user's ~/.Xauthority file with that command : xauth merge filename.
If you handle the authority yourself, you don't need the -X anymore. You can simply forward the X port like this :
ssh -R 60xx:localhost:60xx foreignhost
then, do export DISPLAY=localhost:xx, so you use the right display.
(of course, replace xx with the DISPLAY number you want to use).
* I am developing applications for ARM processor..(as mentioned in the earlier post)..my ARM processor is having linux as its OS..I am calling this as my board(embedded board)..
* Right now I am able to do..
> when I do ssh -X from board to host,and then when I run gedit, I can see the window on my board's screen..
> but reverse is not possible..i.e.,when I do ssh -X from host to board, windows of board's applications I cannt see on host's screen..application hangs for ever without warning....
I think I answered your questions..
I did "ssh -o ForwardX11=yes user@host" also but still no change..
Can you help me..?
Thank you..
Last edited by vasudharao; 03-18-2008 at 11:05 PM.
When connecting from the board to your computer, do you have the X server running on the board? Was X properly installed?
You seem to be having problems like not being able to find xauth, libraries & resources.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.