that should be correct. you can then run any graphical program from putty and it will appear on your windows desktop. if you run xclock, for example, an xclock window will appear. so, running vncviewer should bring up the box asking you where to connect and i'd assume you want to connect to localhost (the linux system). but you don't have to use VNC to use graphical programs, you can run anything from the linux box and it will draw on your windows computer. this is a great way to securely run apps that aren't installed locally (gaim, firefox, etc). i hope you have things working. Jon <>< On Mon, 24 Jan 2005 14:26:19 -0700, todd hewett wrote: > A portion of my [root@ns1 root]# vi /etc/ssh/sshd_config is bellow: > > # Set this to 'yes' to enable PAM keyboard-interactive authentication > # Warning: enabling this may bypass the setting of 'PasswordAuthentication' > #PAMAuthenticationViaKbdInt no > > X11Forwarding yes > #X11DisplayOffset 10 > #X11UseLocalhost yes > #PrintMotd yes > #PrintLastLog yes > #KeepAlive yes > #UseLogin no > #UsePrivilegeSeparation yes > #PermitUserEnvironment no > #Compression yes > > #MaxStartups 10 > # no default banner path > #Banner /some/path > #VerifyReverseMapping no > > I have removed the # from X11Forwarding and changed it to yes. > Does the server read this file every time SSH is used or does SSH need to > restarted for this to take effect? > > I have downloaded Cygwin with x.org. I open a Cygwin bash shellon local > machine and type xwin -multiwindow &" and I get > the X logo in the task tray. > > In that same Cygwin bash shell I type echo $DISPLAY > > And I get Todd G. Hewett@RoadHArd4 ~ > > Putty has x11 forwarding enabled but display is set to localhost:0 > > Thanks for your help. > > Todd > > > -----Original Message----- > From: plug-discuss-admin@lists.plug.phoenix.az.us > [mailto:plug-discuss-admin@lists.plug.phoenix.az.us] On Behalf Of Jonathan > Hohle > Sent: Monday, January 24, 2005 12:39 PM > To: plug-discuss@lists.plug.phoenix.az.us > Subject: Re: x over putty x forwarding over ssh and the like. > > It can't open the display on your local windows machine (which needs > an x server). The easist way I've found is to install X.org through > cygwin. start the xserver using "xwin -multiwindow &" and you'll get > the X logo in the task tray. when you connect via putty, make sure > that you check "Enable X11 forwarding" in Connection>SSH>Tunnels. you > can check to see if the display was connected properly by running echo > $DISPLAY to see if the display variable has been set. > > I've got this working on several different distributions and has > always worked well. let me know if i left anything out. > > Jon > <>< > > On Mon, 24 Jan 2005 10:52:55 -0700, todd hewett > wrote: > > So I am still trying to get X over SSH working. > > > > When I run command: > > [root@ns1 root]# xeyes > > Error: Can't open display: > > > > I wonder if this is because where I have the X display location set up in > > putty. Localhost:0 > > > > If I run xinit over my SSH connection to server I get: > > > > (==) Log file: "/var/log/XFree86.0.log", Time: Mon Jan 24 10:50:42 2005 > > (==) Using config file: "/etc/X11/XF86Config-4" > > (EE) xf86OpenSerial: Cannot open device /dev/psaux > > No such device. > > (EE) Mouse0: cannot open input device > > (EE) PreInit failed for input device "Mouse0" > > No core pointer > > > > Fatal server error: > > failed to initialize core devices > > > > If you encounter a server crash, please report the problem by filing a bug > > report in the XFree86.org bugzilla at http://bugs.xfree86.org and/or Red > Hat > > bugzilla at http://bugzilla.redhat.com/bugzilla. When filing your report, > > it > > is very important that you explain your problem in as much detail as > > possible, > > and include a complete description on how to reproduce the problem. After > > submitting the bug report, attach the following files as uncompressed > > individual file attachments using the bugzilla file attachment feature: > > - X server log file: /var/log/XFree86.0.log > > - Kernel log file: /var/log/messages > > > > XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0" > > after 0 requests (0 known processed) with 0 events remaining. > > > > Thanks for your insite > > > > -----Original Message----- > > From: plug-discuss-admin@lists.plug.phoenix.az.us > > [mailto:plug-discuss-admin@lists.plug.phoenix.az.us] On Behalf Of Kevin > > Brown > > Sent: Sunday, October 31, 2004 2:12 AM > > To: plug-discuss@lists.plug.phoenix.az.us > > Subject: Re: x over putty x forwarding over ssh and the like. > > > > >> Anyone have any experience running x over SSH? > > >> > > >> I have made it this far: > > >> > > >> > > >> - Make sure the X server is configured and running - Open your SSH > > >> session (with X11 forwarding enabled) - type xterm, or your window > > manager > > >> command, or the name of any other X program > > >> > > >> Here is the rub that I have. > > >> > > >> My Linux box is sitting in a rack without a mouse or keyboard attached > to > > > > >> it. > > >> > > >> So when I startx it fails because it is looking for local mouse and > > >> keyboard that are not attached to it. > > >> > > >> > > >> Is there a good (easy) way around this? > > > > > I use vncserver. I ssh into my linux machine from windows via putty. > Start > > > > > the server with `vncserver :1 -geometry 1024x768`. I can then tunnel my > > vnc > > > session(?) through putty. > > > > > > I haven't tried doing this from one linux machine to another. > > > > I have experience doing X over SSH and never bothered with doing startx. > I > > just > > fired off whatever app I needed or even just fired up my WM directly (e.g. > > icewm > > &). You should only be doing startx when you are logged directly into the > > machine at the local keyboard/mouse... > > --------------------------------------------------- > > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > > To subscribe, unsubscribe, or to change you mail settings: > > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > > > > --------------------------------------------------- > > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > > To subscribe, unsubscribe, or to change you mail settings: > > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > > > > -- > Jon > <>< > --------------------------------------------------- > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > To subscribe, unsubscribe, or to change you mail settings: > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > > --------------------------------------------------- > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > To subscribe, unsubscribe, or to change you mail settings: > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > -- Jon <>< --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change you mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss