View previous topic :: View next topic |
Author |
Message |
SneaZ n00b
Joined: 20 Sep 2002 Posts: 22
|
Posted: Fri Sep 27, 2002 11:48 am Post subject: X11 Forwarding? |
|
|
llo,
could anyone explain what i need to run an x-session on my winblows box.
I set up sshd_config with the ForwardX11 option to yes.
what other steps are required?
::: thx ::: |
|
Back to top |
|
|
pan n00b
Joined: 14 Sep 2002 Posts: 13 Location: Sweden
|
Posted: Fri Sep 27, 2002 2:03 pm Post subject: |
|
|
You need an X-server on your windows computer. You can run xfree:
http://www.cygwin.com/xfree/ |
|
Back to top |
|
|
mglauche Retired Dev
Joined: 25 Apr 2002 Posts: 564 Location: Germany
|
Posted: Fri Sep 27, 2002 4:17 pm Post subject: |
|
|
also get an recent putty build .. putty is a great free win32 ssh client, that supports X11 forwarding |
|
Back to top |
|
|
SneaZ n00b
Joined: 20 Sep 2002 Posts: 22
|
Posted: Fri Sep 27, 2002 5:17 pm Post subject: |
|
|
thx for the help
1.I enabled X11forwarding in my sshd_config file
2.I installed putty
3.Set the X11forwarding option in putty with localhost:0 as Display
4.Run putty
5. error => X connection to localhost:10.0 broken (explicit kill or server shutdown).
do i need to export a DISPLAY on my gentoo box? |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Fri Sep 27, 2002 7:12 pm Post subject: |
|
|
Yes,
Code: |
export DISPLAY=anotherhostname:0
|
if you are using bash, for example.
SneaZ wrote: | thx for the help
1.I enabled X11forwarding in my sshd_config file
2.I installed putty
3.Set the X11forwarding option in putty with localhost:0 as Display
4.Run putty
5. error => X connection to localhost:10.0 broken (explicit kill or server shutdown).
do i need to export a DISPLAY on my gentoo box? |
|
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Fri Sep 27, 2002 7:30 pm Post subject: |
|
|
Actually, ssh's X11 forwarding (in Putty and otherwise) opens up a local port on the X client end and forwards it to the originating end of the ssh connection. Putty also sets the DISPLAY variable to "localhost:10.0". You should not have to set the DISPLAY explicitly.
All you need to do is set "xhost + localhost" on your Cygwin end (on your PC). It looks like a local connection to the X server on the PC since it is being forwarded through ssh.
Bloody Bastard wrote: | Yes,
Code: |
export DISPLAY=anotherhostname:0
|
if you are using bash, for example.
SneaZ wrote: | thx for the help
1.I enabled X11forwarding in my sshd_config file
2.I installed putty
3.Set the X11forwarding option in putty with localhost:0 as Display
4.Run putty
5. error => X connection to localhost:10.0 broken (explicit kill or server shutdown).
do i need to export a DISPLAY on my gentoo box? |
|
|
|
Back to top |
|
|
mlybarger Guru
Joined: 04 Sep 2002 Posts: 475
|
Posted: Tue Oct 01, 2002 3:24 pm Post subject: |
|
|
maybe for the tips area? anyway, i edited my ~/.vnc/xstartup file and the first line has :
xhost + localhost <anyother boxes>
works ok. i've heard you can specify this in some ~/.Xxxxx file, but couldn't get that to work. if anyone with knowledge would care to spread the wealth, would be most appreciated. i know it's not the most secure way about it, but you've gotta have a little faith in the iptables, right ) |
|
Back to top |
|
|
|