From 51f2ae45a937406379d3bc0e809bc72bcedd7352 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Wed, 7 Jan 2009 11:58:32 +0000 Subject: [PATCH] Added krb5.bashrc. git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@169 6be0d1a5-5cfe-0310-89b6-964be062b18b --- .profile.d/krb5.bashrc | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .profile.d/krb5.bashrc 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 -- 2.20.1