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?
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.

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:
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.
rysicAuthor Commented:
I don't want to integrante Linux with Windws. I'm not using Windows.
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

Open in new window

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
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

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

Open in new window

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

Open in new window

Should I use it different way  for SSH + Kerberos?
rysicAuthor Commented:
That was the sollution for basic problem.
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

From novice to tech pro — start learning today.