Re: Run kinit when needed?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09-11-21 06:45:40, Christoph Höger wrote:
> Hi,
> 
> I've been switched from keybased auth to kerberos on a university
> server (and things work fine), but running kinit manually every 
> morning or so is ... somewhat disturbing my workflow. Isn't there 
> something like "run kinit the first time when there is no ticket" 
> mode for ssh?

Well, maybe a shell alias would help out.  Use `klist -s` to see if 
kinit is needed, then do ssh.  Something like:

    $ alias ssh='klist -s || kinit ; ssh'

(I don't use Kerberos.  I just looked at `man kinit`, and then `man 
klist`.)

-- 
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson@xxxxxxxxxxxxxxxxx>
      '                              <http://www.georgeanelson.com/>


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux