Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Securing Ssh and problems

80 views
Skip to first unread message

Orkan

unread,
Jul 19, 2010, 5:18:20 AM7/19/10
to
Hi Everybody,

I'm trying to configure Ssh Privileged User for SunSSH on Solaris
10u8. I created sshd user:

/etc/passwd: sshd:x:74:74:Privilege-separated SSH:/var/empty:/sbin/
nologin
/etc/group: sshd::74:

Added lines to /etc/ssh/sshd_config

UseLogin yes
UsePrivilegeSeparation yes

and restarted ssh:

svcadm disable svc:/network/ssh:default
svcadm enable svc:/network/ssh:default

And I cannot login :)

my /var/adm/messages has these lines:

fatal: Userauth method unknown while starting PAM

Any ideas what I should change/add/fix ?

chuckers

unread,
Jul 19, 2010, 8:29:57 PM7/19/10
to

I believe you just need to remove the "UsePrivilegeSeperation yes"
line from
your config if you are going to use the ssh included with Solaris 10.

This is sort of a "bug" with Solaris 10 version of ssh. Solaris ssh
always
uses privilege separation and you can't turn it off. Having the line
in the
config file glorps it up a bit. It would be nicer if it silently
ignored it or
at least printed a more helpful message stating that it was on and
going to ignore
the line in the config.

Refer here:

http://docs.sun.com/app/docs/doc/816-4557/sshuser-6?a=view

Orkan

unread,
Jul 20, 2010, 2:51:36 AM7/20/10
to

Hi Again,

Thank you for your answer, that was really helpfull. I'm removing
"UsePrivilegeSeparation yes" line; but leaving "UseLogin yes" line
still prevents me from logging in. Any ideas about this one?

Cheers,
Orkan

chuckers

unread,
Jul 20, 2010, 3:16:31 AM7/20/10
to

I suppose you remembered to restart sshd after changing the config,
right?

Does ssh -vvv hostname provide anything useful?

0 new messages