sshd not able to restart

Hi,
I was able to putty a few server (Solaris 10) of mine using hostname, but when i change to ip address, it shows

login as: root
Using keyboard-interactive authentication.
Password:
Access denied

I change PermitRootLogin to yes. I tried to do a sshd restart, however

#/etc/init.d/sshd restart
/etc/init.d/sshd: not found

It has a /etc/ssh directory.
Is it i need to install a openssh on that server? Or any package? Please help. :wall:

And also why was i able to putty using hostname with root even PermitRootLogin is no while putty ip address failed?

Use:

svcadm restart ssh

It works! Thanks!

But why was i able to putty using hostname with root even PermitRootLogin is no while putty ip address failed with Access denied?

And also if my server do not have ssh? Where do i find a download for it? For Solaris 8, is it suppose bundle in with the OS installation?

It is on the installation CD for Solaris 10 as well. Packages: SUNWsshdr, SUNWsshr, SUNWsshcu, SUNWsshdu.

Hi, i get

# pkgadd -d /mnt/Product SUNWsshdr

Processing package instance <SUNWsshdr> from </mnt/Product>

SSH Server, (Root)
(sparc) 11.10.0,REV=2005.01.21.15.53
# ident "@(#)copyright  1.4     04/06/22 SMI"
Portions of code copyright by the following authors:

Copyright (c) 1992 Tatu Ylonen, Espoo, Finland
Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
Copyright (c) 1998 CORE SDI S.A., Buenos Aires, Argentina.
Copyright (c) 1998 Free Software Foundation, Inc.                        *
Copyright (c) 1999-2004 Markus Friedl.  All rights reserved.
Copyright (c) 1999-2004 Damien Miller.  All rights reserved.
Copyright (c) 2000 Andre Lucas.  All rights reserved.
Copyright (c) 2000 Corinna Vinschen <vinschen@cygnus.com>, Duisburg, Germany
Copyright (c) 2000-2004 Niels Provos.  All rights reserved.

Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Using </> as the package base directory.
## Processing package information.
## Processing system information.
WARNING: /lib <no longer a symbolic link>
   2 package pathnames are already properly installed.
## Verifying package dependencies.
WARNING:
    The <SUNWcakr> package "Core Solaris Kernel
    Architecture (Root)" is a prerequisite package and
    should be installed.
WARNING:
    The <SUNWckr> package "Core Solaris Kernel (Root)" is a
    prerequisite package and should be installed.
WARNING:
    The <SUNWcnetr> package "Core Solaris Network
    Infrastructure (Root)" is a prerequisite package and
    should be installed.

Do you want to continue with the installation of <SUNWsshdr> [y,n,?]
pkgadd -d /mnt/Product SUNWcakr
pkgadd: ERROR: no package associated with <SUNWcakr>

Do i install anyway? Or i have to try to find all the prerequisite package?

Those core packages should already be installed. You can confirm that by running:

pkginfo -l SUNWcakr | grep STATUS
pkginfo -l SUNWcakr
ERROR: information for "SUNWcakr" was not found