LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to run sshd on SunOS 5.8 (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-run-sshd-on-sunos-5-8-a-718710/)

rahulmishra1312 04-13-2009 12:38 AM

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

jschiwal 04-13-2009 01:16 AM

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.

bathory 04-13-2009 02:10 AM

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

rahulmishra1312 04-13-2009 03:18 AM

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

bathory 04-13-2009 03:27 AM

libcrypto is part of openssl, so you have to install also openssl from sunfreeware

rahulmishra1312 04-13-2009 03:44 AM

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

rahulmishra1312 04-13-2009 04:08 AM

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

bathory 04-13-2009 04:20 AM

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.

rahulmishra1312 04-13-2009 04:51 AM

I've installed the patch. Now what to do.

bathory 04-13-2009 04:55 AM

You can try to start the server
Code:

/etc/init.d/sshd start


All times are GMT -5. The time now is 10:13 PM.