I am trying to enable X11 forwarding on my server which is running on FreeBSD 7.1.

I have a putty installed in my windows in which i have enabled X11 forwarding by

checking on Enable X11 forwarding

and specifying following parameter

X display location localhost:0

after that i run putty and checked whether X11 is enabled or not by typing following command

echo "$DISPLAY" or echo $DISPLAY

but i am getting following error

DISPLAY: Undefined variable.

Even i have installed XManager but in that also i am getting following error

The X11 forwarding request was rejected ! To solve this problem, please turn on the X11 forwarding features of the remote SSH server

can anyone suggest me how to get rid off this ?

link|improve this question
Did you try turning on the X11 forwarding features on the server? – Ignacio Vazquez-Abrams Feb 25 '11 at 14:42
that is what i am trying but i am getting failed whatever i tried till now is listed above – Hunt Feb 25 '11 at 14:58
feedback

2 Answers

Putty is not enough to enable X11 forwarding on Windows, you must have a X Server installed too.

You can for example install Cygwin X : http://x.cygwin.com/

link|improve this answer
1  
I just assumed he had. Another is Xming – Dennis Williamson Feb 25 '11 at 17:09
feedback

In your /etc/ssh/sshd_config you need the following lines:

X11Forwarding yes
X11DisplayOffset 10

The second line above is the default. The value controls the starting DISPLAY for forwarded display numbers.

link|improve this answer
Well , i have found this lines under sshd_config file and i edit it using VI editor by removing # in front of them , but still getting the same problem – Hunt Feb 25 '11 at 16:09
@Hunt: You may need to pkill -SIGHUP -fx /usr/sbin/sshd to get sshd to re-read the config file. – Dennis Williamson Feb 25 '11 at 16:27
I tried the above command but the effect is same . still it is not enabled :( – Hunt Feb 25 '11 at 16:56
@Hunt: You do have an X server installed on your local machine, don't you? – Dennis Williamson Feb 25 '11 at 17:09
no i don't have X Server installed , is it required ? could you explain the procedure – Hunt Feb 25 '11 at 17:18
show 8 more comments
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.