Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to get X11 port forwarding over SSH to work. This will hopefully ultimately enable me to connect to the linux box from home and export the display onto my windows box at home (xclock, xterm, etc)
I have reviewed the "Similar threads" before posting an didnt see anything, in addition i've been googling for 2+ hours now.
I have both x-Win32 and cygwin-x on my system. I need to get this working with X-Win32 as we have a consultant using that x-windows server.
I've already modified my sshd_config file and rebooted my system. New config file reads:
X11Forwarding yes
X11DisplayOffset 10
I've tried adding the "X11UseLocalhost yes" setting, but it is not recognized by the sshd service.
Needless to say that no matter what i do, i get an event log message (using putty to connect) saying that:
"X11 forwarding refused"
then later i get a message "Server unexpectedly closed network connection" and i am unable to interact in putty.
Now if i change the setting "X11Forwarding yes" to "X11Forwarding no" then i will still get the message:
"X11 forwarding refused"
but i dont get the "Server unexpectedly closed network connection" message and i am still able to interact with the system via putty.
I'm definately stumped on this one. Any help would be greatly appreciated.
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495
Rep:
Also make sure you have X installed in cygwin, and any other graphics libraries that might be needed. If you are trying to forward apps that run in gnome, then install gnome in cygwin, so that you get the graphics libraries needed. If you are using the Openssh server for Windows from this website http://sshwindows.sourceforge.net/, that won't work because it installs the minimal cygwin software needed to get ssh working and is not enough to forward X.
Last edited by fakie_flip; 08-01-2006 at 04:29 PM.
ok, i tried what you asked (ssh -X -I username@hostname) and i still see the connection coming back from the server to port 6000 on my system. X-Win32 sits on port 6000 and waits for incoming connections. X-Win32 is my x-windows server that is installed on my system.
If i type simply "ssh username@hostname" (note NO port forwarding) it all behaves the same way. My remote solaris server will connect back to my box on port 6000. I need that communication to come back through the ssh tunnel.
Fakie_flip, thanks for the advise, i already had cygwin-x installed on my system. I also have X-Win32 which does the same thing.
Overall i cannot use the ssh command as my remote technitian does not have cygwin installed on his system. It conflicts with other applications installed. He uses putty to SSH into the solaris box. He also bought X-Win32 to use as his x-windows server.
So, in the end i need this to work with putty and X-Win32. If that is impossible then i need to find a way to simply get X11 port forwarding to work. So all of my X11 communications come through the ssh tunnel.
Well, i got it working now. The problem was with my SSH server installed on the solaris box. I applied a patch cluster, and X11 port forwarding works now! Oh and i've added the line:
X11UseLocalhost yes line to the sshd_config file. sshd will start up with that option in the config file.
I am running sunos 5.10 and am having the same problem.
I've got this
# X11 tunneling options
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
in my sshd config but putty says
X11 forwarding refused
and there's nothing on the server side to say why.
What patch did you apply? Or what else might you have done to get that working?
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Quote:
Originally Posted by fakie_flip
If you want X forwarding w/SSH, use Linux instead of Winblows.
Or install an X11 server on your Windows box, like the one bundled with cygwin ( http://xfree.cygwin.com/ )
Or use an O/S that support X11 natively, like *BSDs, Solaris, macOS X, etc ... and Gnu/Linux obviously
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
What is the best solution for you isn't necessarily the best for someone else.
The question was about SSH X forwarding from Windows to Solaris, not about what is the best O/S to use as a SSH client.
You first gave a wrong answer: "You can't have all the features of Linux/GNU SSH w/Putty." Putty support X11 forwarding, it has a checkbox to enable it.
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495
Rep:
You don't ever shut up do you? I have a life outside of LQ at college and with over 4000 posts, I can see you do not even though you may be definsive about that. I'm not going to reply to your posts anymore. I'll be the mature one and be the first one to stop replying to ignorance.
Last edited by fakie_flip; 09-26-2006 at 01:36 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.