Get Kerberos ticket with SSH
Posted
by
Joel
on Server Fault
See other posts from Server Fault
or by Joel
Published on 2011-08-10T19:57:47Z
Indexed on
2011/11/20
1:56 UTC
Read the original article
Hit count: 505
I'd like to get a Kerberos 5 ticket when ssh-ing to get to a fully-automated login solution.
Typically, you use kinit first and then ssh:
> kinit user@DOMAIN
user@DOMAIN's Password: (enter password)
> ssh user@host
(successful login)
I'd like to simply run ssh user@host and automatically check for a Kerberos ticket. If one isn't there, I'd like it to get a ticket and then log in.
> kdestroy
> ssh user@host
user@DOMAIN's Password: (enter password)
(successful login)
(log off of host)
> klist
(show ticket info)
I'd like this to be configured on a per-host basis, as not every host I log into supports Kerberos.
© Server Fault or respective owner