Masato Taruishi
taru****@users*****
2004年 9月 25日 (土) 14:18:04 JST
=================================================================== RCS file: ultrapossum/module/server/sshman,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- ultrapossum/module/server/sshman 2004/09/25 03:11:38 1.12 +++ ultrapossum/module/server/sshman 2004/09/25 05:18:04 1.13 @@ -19,10 +19,14 @@ fi } +list() { + /bin/ls $SSHKEYDIR +} + auth() { add_startmark "##" "SERVER" > $tmp echo -n "Registering ssh permissions..." 1>&2 - /bin/ls $SSHKEYDIR | while read cmd + list | while read cmd do if test -f $SSHKEYDIR/$cmd/id_rsa.pub; then echo -n " $cmd" 1>&2 @@ -56,6 +60,9 @@ fi keygen "$2" ;; + xlist) + list + ;; xauth) auth ;; @@ -70,7 +77,7 @@ cmd "$2" "$3" ;; x) - echo "Usage: $0 keygen <cmd>|auth|unauth|cmd <host> <cmd>" 1>&2 + echo "Usage: $0 keygen <cmd>|list|auth|unauth|cmd <host> <cmd>" 1>&2 ;; x*) echo "Unknown argument: $1" 1>&2