How to automatically store/cache password for kerberos authentication

Hi All,

I am currently writing script to get the details for lot of hosts from jump server. Means each and every time it will ssh to the host and get the information. To achieve that I need to automatically accept the password from Jump server to that main hosts. We are using kerberos password to access the hosts. Pls let me know how to cache the password & accept it automatically ? Pls advice

Regards
Kannan

I dont get you here, kerberos uses granting ticket to aknowledge trusted users...

Thanks for your reply !

My intention is to ssh mutiple hosts from jump server without passing the password each and every time. We have perl script to accept the password & run to the mutliple hosts without asking password. But my goal to acheive via shell. I dont have much idea about perl scripting. I have attached the perl script in this post. Pls review and let me know how they acheived the logic. Thanks !

Regards

I see no attachment... Never mind, As said Kerberos uses tickets, once you are granted in kerberos you need no password while the granted ticket is valid (usually one month ) then you are to renew your ticket. Otherwise it is using key exchange ssh but does it work with ssh? I have some doubts because Kerberos implementation means also using its own shell and commands, so for me you should more likely enquire how kerberos is implemented and for what usage before trying to go further, it may only be to authenticate through an AD ldap which means you must be authenticated by the AD before you can try to login to an AD unix host, in this case the ticket is to be generated by ?? on all concerned hosts then you use ssh which means you will have to generate your keys in order to copy them around for no passwd connection, on the subject search the forums here, there are plenty exemples of how to do...

thanks for your reply !

Sorry i forgot the attachment. Pls find the link to see the script.

https://drive.google.com/file/d/0B3Q72L1SBsJFOG5VM1ZCWmxKbzQ/edit?usp=sharing

Regards
Kannan

If I understand you correctly, your goal is to take an existing Perl script and convert it to a shell script. Correct?

Thanks for your email,

My intention is to make use of only that password function inside the perl script & avoid from the password prompt each and every time

Regards
Kannan