git://git.iain.cx/iain
/
profile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
030fc36
)
Added krb5.bashrc.
author
Iain Patterson
<me@iain.cx>
Wed, 7 Jan 2009 11:58:32 +0000
(11:58 +0000)
committer
Iain Patterson
<me@iain.cx>
Wed, 7 Jan 2009 11:58:32 +0000
(11:58 +0000)
git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@169
6be0d1a5
-5cfe-0310-89b6-
964be062b18b
.profile.d/krb5.bashrc
[new file with mode: 0644]
patch
|
blob
diff --git a/.profile.d/krb5.bashrc
b/.profile.d/krb5.bashrc
new file mode 100644
(file)
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