LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 07-12-2006, 10:05 AM   #1
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
"ssh -X" between FC4 and Solaris 9 not working


Hi.

I am trying to figure out why "ssh -X" does not work between my FC4 box (leo) and a Solaris 9 server (sparc-sf9). I can connect to it with the following command:
Code:
$ ssh -X sparc-sf9
But when I run a X app (such as "xterm") on the Solaris console, I get the following error:
Code:
xterm Xt error: Can't open display:
For some reason, DISPLAY is not set to point to "localhost:10.0" as should be the case with "ssh -X". So I manually set DISPLAY as "localhost:10.0". I still cannot open xterm on my FC4 box.
Code:
xterm Xt error: Can't open display: localhost:10.0
Could anyone educate me? Is there any particular component that must be installed on Solaris in order for "ssh -X" to work? Interestingly, "ssh -X" works perfectly with another Solaris machine we have, which is running Solaris 10.

NOTE: I did run "xhost +sparc-sf9" on FC4.

Any help would be appreciated.

Dai
 
Old 07-12-2006, 10:51 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Try 'ssh -Y' instead; it may be that the Solaris 9 machine is not using the X11 security controls.
 
Old 07-12-2006, 11:28 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Try "ssh -v -X sparc-sf9" to see what is negotiated.

"xhost +sparc-sf9" is unnecessary, and potentially risky.
 
Old 07-14-2006, 03:47 PM   #4
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Original Poster
Rep: Reputation: 34
Thanks for the response, guys.

First, "ssh -Y" did not work either. Second, I tried "ssh -V -x" to capture the verbose messeages. Here's what I got:

Code:
[leo.aaa.com:/home/dtoyama]$ ssh -v -X sparc-sf9
OpenSSH_4.2p1, OpenSSL 0.9.7f 22 Mar 2005
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to sparc-sf9 [198.206.247.6] port 22.
debug1: Connection established.
debug1: identity file /home/dtoyama/.ssh/identity type -1
debug1: identity file /home/dtoyama/.ssh/id_rsa type 1
debug1: identity file /home/dtoyama/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version Sun_SSH_1.0.1
debug1: match: Sun_SSH_1.0.1 pat Sun_SSH_1.0*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Host 'sparc-sf9' is known and matches the RSA host key.
debug1: Found key in /home/dtoyama/.ssh/known_hosts:2
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/dtoyama/.ssh/identity
debug1: Offering public key: /home/dtoyama/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Requesting X11 forwarding with authentication spoofing.
Does this give you any clue? Thanks!
 
Old 07-14-2006, 03:51 PM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Your log is truncated just before the interesting part ...
 
Old 07-14-2006, 11:17 PM   #6
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by jlliagre
Your log is truncated just before the interesting part ...
Actually, that _is_ the last line of the output produced by "-v".
 
Old 07-15-2006, 12:53 AM   #7
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
is your Solaris machine set to allow X forwarding? check in /etc/ssh/sshd_config or similar and check for "X11Forwarding yes".
 
Old 07-15-2006, 03:07 AM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You can also increase the debug level with:
"ssh -X -v -v -v sparc-sf9"
 
  


Reply



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 issue ""Server unexpectedly closed network connection" Errsta_Fonzarelli Linux - Software 12 05-24-2010 02:35 PM
Why does "crond" sleep and "ssh" hung up? Chowroc Linux - Networking 0 01-12-2006 12:24 AM
FC4 install errors, "diabling IRQ #10" "nobody cares" error message??? A6Quattro Fedora 6 07-20-2005 12:49 PM
SSH Tunnel not working... "Administratively Probihited..." nsanity Linux - Networking 3 01-03-2004 01:25 PM
"socks5" -> "http" proxy protocol, or ssh tunnel to sock5 ? I'm beyond http p vmicho Linux - Networking 2 12-16-2003 05:32 AM

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

All times are GMT -5. The time now is 04:54 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