Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Using x11 through ssh tunnel

Status
Not open for further replies.

jiang

Advanced Member level 4
Full Member level 1
Joined
Dec 31, 1999
Messages
111
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Location
Taiwan
Activity points
855
f-secure tunneling x11

Hi,

I learned that I can use ssh forwarding X11 packet when my ip is the virtual ip.
I use this method to display X11 on my pc with virtual ip,
but my pc is always not funcation.
Does anyone has the experience of using ssh forwarding X11?

BR,
jiang
 

Re: x11 through ssh tunnel

I've done this many times in the past using Exceed on my home machine under Windows or natively under linux to when I worked from home.

1) What OS are you running on your home machine?

2) If you're running Windows what application are you running to translate the x-windows commands to window commands?

3) What is your ssh client?

4) What is the os of the machine you're trying to ssh into?

Radix
 

My fiend ussing F-Secure , and there is parameter - Enable X11 tunneling . May be something similar is in your client .
 

1. The OS of my pc at home is windows xp.
2. I use PuTTY to connect redhat 8.0 linux.
3. I find the display envirnment on linux is :0.0,
but I always get the error messges.

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

4. I run 'xauth list' to see x authority and it shows

xxx/unix:2 MIT-MAGIC-COOKIE-1 xxxx

5. I set the display environment to :2.0 but
it doesn't work and shows
Can't open display

What setup should I do before I use ssh?
I have setuped X11Forwarding in /etc/ssh/sshd_config and
ForwardX11 and ForwardAgent in /etc/ssh/ssh_config.
 

I have found the problems where they are.

1. wrong display variable
I setup the display variable in /etc/bashrc,
because I must automatically setup the display variable of the user who use telnet.

fix => I found that $REMOTEHOST will not be set as I use ssh to connect linux.
I modify /etc/bashrc as follows:
if [ -n "$REMOTEHOST" ]; then
export DISPLAY=$REMOTEHOST:0.0
fi

2. wrong host name
The ssh client will set the display variable like localhost:x.0.
The host name, localhost, must be 127.0.0.1.

fix => modify /etc/hosts
 

Re: x11 through ssh tunnel

Did you also use "-X" with ssh? Otherwise the DISPLAY variable will not be set.
 

Re: x11 through ssh tunnel

keep it simple, install open ssh on your linux machine then note down your username, password and ip address.

Currently I was able to login using XFree 4.3.0 PPC under OS X 10.2.8 using the following.

ssh -X -l username 192.168.1.xxx

All done on a powerbook G4 17 using Airport extreme completly wireless!!
This has given me quite a few ideas, I nolonger have to slave over a computer desk all the time :)

KLEO
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top