SSH issue

Hi guys.
I just installed Solaris 10 and want to enable ssh on it So that i can remotely use it from another location.
I read a post on this forum an it was written that SSH is enabled by default.
I did a ps -ef | grep ssh and nothing showed up meaning that it isnt running.

I even tried accessing /etc/lib/ssh but this directory dosent exist.

Help plz !

Regards,
Junaid

What is the output of:

svcs ssh

Did you try starting it?

svcadm enable ssh

scvs return
scvs: Pattern 'ssh' dosent match any isntances.

and
svcadm returns

svcadm: Pattern 'ssh' dosent match any instances.

Perhaps you chose to skip it during installation?

Which version (x86 or Sparc) of Solaris and which media type did you use for installation (ISO file, CD, DVD, etc.).

You may need to access that media and run pkgadd to install SSH.

I have no idea about that. I just did a standard installation.

Im using x86 and used a CD to install. Will I find the required packages in the media ?

system      SUNWsshcu                        SSH Common, (Usr)
system      SUNWsshdr                        SSH Server, (Root)
system      SUNWsshdu                        SSH Server, (Usr)
system      SUNWsshr                         SSH Client and utilities, (Root)
system      SUNWsshu                         SSH Client and utilities, (Usr)

are the packages I believe. They are normally a part of the distribution. Unless somebody did something unusual on a base install /usr/lib/ssh should have been there.

try:

pkginfo | grep ssh

and see what shows up.

Can you paste the output of below commands?

Svcs -xv
Svcs -a|grep -a ssh
Who -r
Svcs -a|grep -i network

$ Svcs -xv
ksh: Svcs:  not found
$ Svcs -a | grep -a ssh
grep: illegal option -- a
Usage: grep -hblcnsviw pattern file . . .
ksh: Svcs:  not found
$ Who -r
ksh: Who:  not found
$ Svcs -a | grep -i network
ksh: Svcs:  not found

I apologize for the typo, all the letters are lower case, try these

svcs -xv
svcs -a | grep -i ssh
who -r
svcs -a | grep -i network
1 Like

svcs includes "grep" and all smf services are in lowercase so this would be equivalent:

svcs "*ssh*"
svcs "*network"
1 Like

Become root

run the following codes:

svcs -a | grep -i ssh

What does it say? Does it give you the FMRI? if it does, is it disable,offline or maintenance?

Need this information to proceed with this fix.

Waiting. Please post the out put of the command svcs -a | -i ssh

This has already be done, see post #3. Unless the OP made a typo, which is unlikely with "ssh", it seems the ssh service has been deleted from this machine.

Edit: Well, either the OP made a typo or reinstalled: http://www.unix.com/solaris/204497-problem-ssh.html\#post302720267