ssh in solaris 10

Hi allI have installed a new Solaris 10 1/06 on sunV480. I am not able to login with ssh in this server, both rlogin and telnet is working.If you have any solution for this please updateThanksRPS
[223 byte] By [RajeshPS] at [2007-11-26 9:16:36]
# 1
You probably need to setup and start the sshd server.
timevans at 2007-7-6 23:43:07 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2
can you please tell me, how do we do that?
RajeshPS at 2007-7-6 23:43:07 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3
try svdadm enable sshThe initialisation has probably already been done.
robertcohen at 2007-7-6 23:43:07 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 4
Ok, i'm a nitpicker here, but what Robert meant was "svcadm enable ssh" ;-) 7/M.
mAbrante at 2007-7-6 23:43:07 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 5
I already did svcadm enable ssh,svcadm restart ssh, but still not able to login with ssh
RajeshPS at 2007-7-6 23:43:07 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 6
What happens? Do you get a connection refused or another message? How do you try it? Do you run "ssh localhost" or use a windows tool like putty? 7/M.
mAbrante at 2007-7-6 23:43:07 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 7
I am trying with putty from windows,It is giving connection refused.same tool if i select telnet or rlogin i am able to login
RajeshPS at 2007-7-6 23:43:07 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 8
ok. What does svcs |grep sshreturns?Also, is there anything interesting in the /var/adm/messages file? 7/M.
mAbrante at 2007-7-6 23:43:07 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 9
svcs |grep sshofflineAug_03svc:/network/ssh:defaultThere is nothing new in /var/adm/messages
RajeshPS at 2007-7-6 23:43:07 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 10

svcs -l ssh

fmri svc:/network/ssh:default

name SSH server

enabledtrue

stateoffline

next_statenone

state_timeThu 03 Aug 2006 06:09:24 PM IST

restartersvc:/system/svc/restarter:default

dependencyrequire_all/none svc:/system/filesystem/local (online)

dependencyoptional_all/none svc:/system/filesystem/autofs (online)

dependencyrequire_all/none svc:/network/loopback (online)

dependencyrequire_all/none svc:/network/physical (maintenance)

dependencyrequire_all/none svc:/system/cryptosvc (online)

dependencyrequire_all/none svc:/system/utmp (online)

dependencyrequire_all/restart file://localhost/etc/ssh/sshd_config (online)

RajeshPS at 2007-7-6 23:43:07 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 11

You'ld have to check the status on the networker/physical service by using svcs as well as checking the logfiles in /var/svc/log/ .

Is it possible that you have a invalid hostname.<interface> file in /etc/? Or that there is some other problem with your network configuration?

7/M.

mAbrante at 2007-7-6 23:43:07 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 12
how does /var/svc/log*ssh* look?Message was edited by: HenryC
HenryC at 2007-7-6 23:43:07 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 13
Rajesh,Putty doesn't allow you to connect to the server using ssh and root user, what user are you tryin with?ssh is enable by default in Solaris 10JoshD
JoshD at 2007-7-6 23:43:07 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 14
Thanks all for your replynow i am able to login with ssh through puttywe did two changes /etc/ssh/sshd_config we have changed PermitRootLogin yesthen svcadm enable ssh
RajeshPS at 2007-7-6 23:43:07 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 15
Allowing root log in does not resolve ssh permission denied issues through putty. It is network configuration related.
cabalaa at 2007-7-21 15:16:55 > top of Java-index,Solaris Operating System,Solaris 10 Features...