| Author |
Message |
jiang
Joined: 01 Jan 1970 Posts: 159 Location: Taiwan
|
09 Jan 2004 10:26 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
|
|
| Back to top |
|
 |
radix
Joined: 23 Jul 2002 Posts: 157 Helped: 5
|
09 Jan 2004 14:39 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
|
|
| Back to top |
|
 |
artem
Joined: 22 May 2003 Posts: 1652 Helped: 91 Location: Turan
|
09 Jan 2004 15:21 |
|
|
|
|
| My fiend ussing F-Secure , and there is parameter - Enable X11 tunneling . May be something similar is in your client .
|
|
| Back to top |
|
 |
Google AdSense

|
09 Jan 2004 15:21 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
jiang
Joined: 01 Jan 1970 Posts: 159 Location: Taiwan
|
10 Jan 2004 6:57 |
|
|
|
|
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.
|
|
| Back to top |
|
 |
jiang
Joined: 01 Jan 1970 Posts: 159 Location: Taiwan
|
10 Jan 2004 12:40 |
|
|
|
|
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
|
|
| Back to top |
|
 |
jokurt
Joined: 10 Jan 2004 Posts: 2
|
11 Jan 2004 4:14 Re: x11 through ssh tunnel |
|
|
|
|
| Did you also use "-X" with ssh? Otherwise the DISPLAY variable will not be set.
|
|
| Back to top |
|
 |
gezzas525
Joined: 14 Mar 2002 Posts: 154
|
16 Jan 2004 13:09 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
|
|
| Back to top |
|
 |