chiark / gitweb /
sshsvc.conf: Configuration file for `sshsvc-mkauthkeys'.
[chopwood] / sshsvc.conf
diff --git a/sshsvc.conf b/sshsvc.conf
new file mode 100644 (file)
index 0000000..d6cc1ea
--- /dev/null
@@ -0,0 +1,12 @@
+### -*-sh-*-
+
+cmd="./chpwd"
+
+make_key_line () {
+  user=$1
+  case $user in
+    chpwd@*) var=CHPWD_SSH_MASTER user=${user#*@} ;;
+    *) var=CHPWD_SSH_USER ;;
+  esac
+  echo "environment=\"$var=$user\""
+}