From: Iain Patterson Date: Wed, 7 Jan 2009 11:58:32 +0000 (+0000) Subject: Added krb5.bashrc. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=51f2ae45a937406379d3bc0e809bc72bcedd7352;p=profile.git Added krb5.bashrc. git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@169 6be0d1a5-5cfe-0310-89b6-964be062b18b --- diff --git a/.profile.d/krb5.bashrc b/.profile.d/krb5.bashrc new file mode 100644 index 0000000..12b8ea1 --- /dev/null +++ b/.profile.d/krb5.bashrc @@ -0,0 +1,12 @@ +# $Id$ +alias kssh='ssh -o preferredauthentications=gssapi-with-mic' +alias pssh='ssh -o preferredauthentications=password,keyboard-interactive' +if [ $UID -gt 0 ]; then + if tty -s; then + if klist -s; then + kinit -R + else + kinit + fi + fi +fi