LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This 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


Reply
  Search this Thread
Old 05-01-2005, 12:49 AM   #1
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Rep: Reputation: 31
Display locally


I can remotely login into a sun WS with solaris9 installed by ssh. The connection command is as follows:

1#xhost +
2#ssh -X My_ID@Remote_Server_IP or Name

After login, I tried to start xterm but the following error is shown me:

3# xterm &
xterm XT error: Can not open display.

Because I want to use some cad software in another Pc I wonder some methods to solve the remote display problem.
Please help me!
 
Old 05-01-2005, 01:23 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Are ports 6000/tcp and 177/udp open?

Hi -

Off the top of my head, the first two things to look for might be:
1. Do you have a firewall between your PC and the Solaris host, and
2. If so, are X-windows ports 6000/tcp and 177/udp open?

I'm assuming that you already have an X windows emulator (such as eXceed or Cygwin/X) installed and operational on your PC. Can you open and display an X11 app (such as XClock) locally on your PC?

'Hope that helps ... PSM
 
Old 05-01-2005, 03:43 AM   #3
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
More info

Yes, I have installed Cygwin in my win pc and I can start the X11 application such as Xclock. But I do not know how to confirm if there is a firewall between my winpc and sunpc. If assuming not , how to confirm if the 6000/tcp and 177/udp is open.
 
Old 05-01-2005, 08:37 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,793

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
This is not a firewall issue, as you are able to communicate with ssh, and X11 protocol is tunneled in the same ssh connection.
The issue may be due to sshd on the Solaris side not allowing X11 tunneling.
check is X11Forwarding is set in /etc/ssh/sshd_config

Also, the error message "xterm Xt error: Can't open display: "
shows the DISPLAY variable is not set, it should be set on the calling shell (the one that call "ssh -X ...", and on the target machine, it should be something like ":10" to work.

Another reason would be for the ssh key having change, in that case there is this message "X11 forwarding is disabled to avoid man-in-the-middle attacks."
displayed at login time.
 
  


Reply


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
Hacking root locally aznluvsmc Linux - Security 4 02-13-2005 12:29 AM
Reboots locally not remotely dolem98 Linux - Software 2 07-08-2004 10:05 AM
sendmail won't send locally! Red Squirrel Linux - Software 5 04-14-2004 05:45 PM
Working with PHP locally aqwabawks Linux - Newbie 2 11-03-2003 10:00 AM
Can't Login Locally As Root Sword Linux - General 5 08-01-2003 04:25 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 09:00 AM.

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