LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 07-16-2009, 02:13 PM   #1
agummad
LQ Newbie
 
Registered: Jun 2009
Posts: 12

Rep: Reputation: 0
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
 
Old 07-16-2009, 02:32 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,908

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
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"
 
Old 07-16-2009, 02:52 PM   #3
agummad
LQ Newbie
 
Registered: Jun 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
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

Last edited by agummad; 07-16-2009 at 02:58 PM.
 
Old 07-16-2009, 04:04 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,499

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Quote:
Originally Posted by agummad View Post
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.
 
  


Reply

Tags
authenticating, security, solaris, ssh


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find Machine serial number of solaris machine? adastane Solaris / OpenSolaris 15 01-09-2012 08:29 AM
scp without authentication and ssh with authentication? bkcreddy17 Linux - Server 7 10-08-2008 01:33 AM
SSH forward from a Windows machine to a Linux machine isn't working nickj6282 Linux - Networking 3 08-13-2006 02:47 PM
Cannot telnet into linux machine from Solaris machine ngcddls Linux - Newbie 1 03-09-2006 08:07 AM
ssh-key authentication failing on one machine chr15t0 Linux - Security 3 08-21-2003 04:24 PM


All times are GMT -5. The time now is 03:04 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration