Using Kerberos for SSH connecion

I configured Kerberos in OpenSUSE. I can use kinit and i have added to Kerberos one host and one test user.

How can I configure SSHd to use Kerberos?

I tried in /etc/ssh/sshd.config:
KerberosAuthentication yes
KerberosTicketCleanup yes
GSSAPIAuthentication yes
GSSAPICleanupCredentials yes

Open in new window


but it is not workin - server is still asking about password.

How can I configure SSH daemon and client to use only Kerberos?
LVL 5
rysicAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

abbrightCommented:
I guess you need to change your PAM-configuration. Anyway there is a simple tool which allows for very seamless integration of a Linux-PC into a windows domain: http://www.beyondtrust.com/products/powerbroker-identity-services-open-edition/
Using this tool you only need to give one command to join the machine to the domain and have everything running including Single-Sign-On using PuTTY, etc.
0
rysicAuthor Commented:
I don't want to integrante Linux with Windws. I'm not using Windows.
0
rysicAuthor Commented:
I discovered using ssh -vvv that tere is problem with time for kerberos . I dont know why because time was synchronized. I changed clockskew from 120 to 1120 in all hosts and now using ssh -vvv I can see:

...
next authentication method: gssapi-with-mic
we sent a gssapi-with-mic packet, wait for reply
delegating credentials
delegating credentials
authentications that can continue: publickey,gsapi-with-mic,keyboard-interactive
we sent a gssapi-with-mic packet, wait for reply
authentications that can continue: publickey,gsapi-with-mic,keyboard-interactive
connection closed byy 10.50.10.199

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

rysicAuthor Commented:
In ssh server /var/log/messages
invalid user test from 10.50.10.122

Open in new window


I am using ssh like that:
ssh -vvv test@10.50.10.199

Open in new window

Should I use it different way  for SSH + Kerberos?
0
rysicAuthor Commented:
That was the sollution for basic problem.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.