Get Kerberos ticket with SSH
- by Joel
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.