Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-10-2006, 01:59 PM   #1
LQ Newbie
Registered: Nov 2005
Posts: 9

Rep: Reputation: 0
ssh -X solaris linux


I am trying to forward an X-Display from a Sun to a Linux machine (SunOS 5.9 to Open Suse 10.0). Trying to launch an xterm I receive

xterm Xt error: Can't open display:

Setting the Display explicitly just stalls the process.

I already tried to uncomment -nolisten tcp in Xservers and xserverrc without success.

My logfile for the ssh -X -v:

debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8

Putting an rc file in my .ssh directory I get the following error messages:

.ssh/rc: Host: not found
.ssh/rc: ForwardX11: not found
.ssh/rc: ForwardAgent: not found

I suspect this might be a compability issue between Solaris ssh and Open ssh? Maybe there is a workaround that I have not seen. The xforwarding from another Sun in our network seems to work.

Any help appreciated! Thanks in advance!
Old 01-10-2006, 03:30 PM   #2
Senior Member
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
Is the Sun set to allow X forwarding? (look in /etc/ssh/sshd_config or something like that)
Old 01-11-2006, 08:50 AM   #3
LQ Newbie
Registered: Nov 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Solved the problem!

Thanks! Changed the option in /etc/ssh/sshd_config from

X11Forwarding no


X11Forwarding yes

and it works. I did not realize the problem could be lying on the sending side.
Old 02-07-2007, 02:56 PM   #4
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170

Rep: Reputation: 30
It works both ways. Your ssh talks with sshd on the other machine. If you are on Solaris and ssh back to Linux, you will be talking to the Linux sshd and you also need the same entry in your /etc/ssh/sshd_config on the Linux side.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh solaris xwindows simquest Linux - Software 1 07-10-2009 12:08 PM
rsh/ssh from Linux to Solaris sttaft Solaris / OpenSolaris 7 06-16-2004 06:14 AM
Solaris 9 and SSH Daemon g_goblin Solaris / OpenSolaris 3 11-05-2003 01:36 AM
telnet and ssh on Solaris 9 Shin Takeshita Solaris / OpenSolaris 6 08-28-2003 08:24 PM
Linux+Solaris : How can linux login to Solaris alnizam Linux - Software 2 05-28-2003 10:39 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration