LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (http://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Solaris 10 newbie: Cannot ssh into machine- authentication issues (http://www.linuxquestions.org/questions/solaris-opensolaris-20/solaris-10-newbie-cannot-ssh-into-machine-authentication-issues-740594/)

agummad 07-16-2009 02:13 PM

Solaris 10 newbie: Cannot ssh into machine- authentication issues
 
Greetings!
I just managed to install Solaris 10 on a Sparc based machine. However, there might be a problem with the way ssh is configured.
I CAN ssh from the machine into another on the network (same subnet), but then the newly installed machine CANNOT seem to accept incoming ssh connections properly.
When I try to connect to this one, I get stalled right at the authentication- it keeps asking me for the password, unable to authenticate the root properly. Here is what I tried so far-

svcs network/ssh
STATE STIME FMRI
online ..... svc:/network/ssh:default

svscs -d network/ssh :default
STATE STIME FMRI
online svc:/network/loopback:default
online svc:/network/physical:default
online svc:/system/cryptosvc:default
online svc:/system/filesystem/local:default
online svc:/system/utmp:default
online svc:/system/filesysytem/autofs:default

I changed the root password multiple times, without any change to the situation.
I'd really appreciate some help at this point.
Thank you in advance,
Ag

bathory 07-16-2009 02:32 PM

Try to login as a normal user and see what happens. By default the root cannot ssh into a machine unless you uncomment "PermitRootLogin yes"

agummad 07-16-2009 02:52 PM

Quote:

Originally Posted by bathory (Post 3609872)
Try to login as a normal user and see what happens. By default the root cannot ssh into a machine unless you uncomment "PermitRootLogin yes"

Bathory, You were spot on!! That did it!!

I found /etc/ssh/sshd_config with 'PermitRootLogin no' , changed that to 'yes and restarted the service. I was able to login immediately.

Thanks a lot!

One question though. In another attempt I changed the root directory permissions to 755. Would that be a security threat? What do I change it back to?

AG

jlliagre 07-16-2009 04:04 PM

Quote:

Originally Posted by agummad (Post 3609892)
One question though. In another attempt I changed the root directory permissions to 755. Would that be a security threat? What do I change it back to?

There is no problem as you didn't actually change the permissions. Root's home directory is / and / permissions are already 755.


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