Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ssh and X11 works only locally
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Tuxuser
Tux's lil' helper
Tux's lil' helper


Joined: 28 Oct 2002
Posts: 136
Location: Solingen / Germany

PostPosted: Sun Nov 24, 2002 5:09 pm    Post subject: ssh and X11 works only locally Reply with quote

Hi!

I setup ssh and tried to use X11 remotely. It doesn't work hence I need your help.
ForwardX11 in ssh_config is set to yes and it works when I try ssh -X user@192.168.0.1 locally. It also accepts the request for a X11 session when using it from the local machine and the dynamic ip address i.e. ssh -X user@80.123.456.7 but exporting the display doesn't seem to succeed. Doing this from a different machine the ssh server denies X11 forwarding totally.

Any ideas how to solve this?

Thanks
Back to top
View user's profile Send private message
theneopro
Tux's lil' helper
Tux's lil' helper


Joined: 08 Aug 2002
Posts: 90

PostPosted: Mon Nov 25, 2002 3:06 am    Post subject: forwadinh X11 Reply with quote

Okay you did do a killall -HUP sshd

also the server side as well as the client must be setup for this.
X11fowarding yes on server
then do the killall

client side:
export Display={server IP}:0.0
and edit ssh_config to forwaingX11 yes

both must be done and reset.
_________________
___________________________________
- The Rain Forest,
That sounds wet!!!!
Back to top
View user's profile Send private message
sleazyrob
n00b
n00b


Joined: 11 Jun 2002
Posts: 8
Location: Leeds / Manchester / London UK

PostPosted: Tue Nov 26, 2002 12:51 pm    Post subject: Reply with quote

..and for extra diag messages use the -v flag.
You'll see "X11 forwarding [rejected/accepted] by remote host" or something similar.
_________________
--
Robert N Wood
rob@rnwood.co.uk
Back to top
View user's profile Send private message
Tuxuser
Tux's lil' helper
Tux's lil' helper


Joined: 28 Oct 2002
Posts: 136
Location: Solingen / Germany

PostPosted: Fri Nov 29, 2002 9:28 am    Post subject: Thanks Reply with quote

I was some days offline. My fault was that I didn't realize that xforwarding has to be set on the client, too.

Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum