LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-13-2009, 01:38 AM   #1
rahulmishra1312
LQ Newbie
 
Registered: Mar 2009
Posts: 10

Rep: Reputation: Disabled
how to run sshd on SunOS 5.8


Hi,
I am working on SunOS 5.8, and I need to do ssh on it. But no ssh process running on it and when I search for sshd file , I am not able to see it in either /usr or /etc. Is ssh not installed on my machine, and if not how can I can download the ssh and install it on my SunOS.

Best Regards
Rahul Mishra
 
Old 04-13-2009, 02:16 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
I don't use SunOS. Does it have a package manager & repository or a DVD of packages. If so, it would be best to use the package so that it is built properly for your system. For example, for most Linux distro's, it will be built with PAM and libwrap support. These will be optional configuration items if you build it from source. If this work was done for you by a packager for your system, that would be the better solution. If not, then you could download the source and build it yourself.
http://www.openssh.com/portable.html
To quote from the openssh site: "Unfortunately, in particular since OpenSSH does authentication, it runs into a *lot* of differences between Unix operating systems".

You might want to google for "openssh solaris ./configure" to find what configuration options you need. It may even depend on the version of Solaris that you use.

Last edited by jschiwal; 04-13-2009 at 02:19 AM.
 
Old 04-13-2009, 03:10 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,596

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
You can run:
Code:
pkginfo|grep ssh
to see if it's installed.
If it's not installed, you can the openssh package, along with its dependencies from sunfreeware

Regards

Last edited by bathory; 04-13-2009 at 04:28 AM.
 
Old 04-13-2009, 04:18 AM   #4
rahulmishra1312
LQ Newbie
 
Registered: Mar 2009
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi,

Thanks, Finally I've successfully installed ssh, but now what I am facing whenever I tried to start sshd by running the following command :
/usr/local/bin/sshd start

I am getting following error message :
ld.so.1: /usr/local/sbin/sshd: fatal: /usr/lib/libcrypto.so.0.9.8: wrong ELF data format: ELFDATA2LSB
Killed

From where I can get this library, or if there is something else wrong.

Regards
Rahul
 
Old 04-13-2009, 04:27 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,596

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
libcrypto is part of openssl, so you have to install also openssl from sunfreeware
 
Old 04-13-2009, 04:44 AM   #6
rahulmishra1312
LQ Newbie
 
Registered: Mar 2009
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi,

I've installed openssl but still I am getting the follwing error :

bash-2.03# /usr/local/sbin/sshd /start
ld.so.1: /usr/local/sbin/sshd: fatal: libcrypto.so.0.9.8: open failed: No such file or directory

Regards
Rahul
 
Old 04-13-2009, 05:08 AM   #7
rahulmishra1312
LQ Newbie
 
Registered: Mar 2009
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi,

Thanks for the valuable info, I've successfully installed openssl, but now I am getting different error message, Now on start of sshd daemon, I am getting following message :

bash-2.03# /usr/local/sbin/sshd start
PRNG is not seeded

Regards
Rahul
 
Old 04-13-2009, 05:20 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,596

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
You need to install patch 112438-03 or newer to create missing /dev/random and /dev/urandom devices.
Read this for details and go to sunsolve to get the needed patch.
 
Old 04-13-2009, 05:51 AM   #9
rahulmishra1312
LQ Newbie
 
Registered: Mar 2009
Posts: 10

Original Poster
Rep: Reputation: Disabled
I've installed the patch. Now what to do.
 
Old 04-13-2009, 05:55 AM   #10
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,596

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
You can try to start the server
Code:
 /etc/init.d/sshd start
 
  


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
Are there any cases to run sshd at remote host? bartalamu Linux - Newbie 2 09-29-2008 02:42 AM
Starting sshd: /etc/init.d/sshd: line 113: /usr/sbin/sshd: Permission denied sumanc Linux - Server 5 03-28-2008 05:59 AM
Compile and run gtk application under SunOS and use it with Hummingbird exceed in win dream2code Solaris / OpenSolaris 6 04-12-2007 06:34 AM
Making SSHd Run On Boot Chrysalid Linux - Software 3 04-02-2005 06:55 AM
get sshd to run! naijaguy Linux - General 5 08-13-2004 06:08 PM


All times are GMT -5. The time now is 09:44 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration