Let me prefix this question with if this is the wrong forum please point me in the direction of the correct one.
I'm using Cygwin and Windows 7 and ssh via Cygwin to Linux servers and workstation, to include Ubuntu. For authentication there is always the password but like not having to type my password 1000 times a day so I use my Windows AD kerberos tickets to login to Linux servers that are also on the Window domain. This all works but tickets expire everyday so I would like to add a statement to my bashrc like"
if kerberos_ticket == expired
then kinit
fi
Looking at the man pages for kinit and klist I don't see how I could script this out. I guess I could grep/awk the output of klist but are there any quick solutions?
thanks,
Brandon
Bookmarks