ssh authorized_keys options test
authorClint Adams <schizo@debian.org>
Sat, 2 Oct 2010 19:06:54 +0000 (15:06 -0400)
committerClint Adams <schizo@debian.org>
Sat, 2 Oct 2010 19:26:59 +0000 (15:26 -0400)
tests/basic

index 30cff06d46e527cb193df5eaf67aebffcbfaf676..9ae04b4e3e031c80ac0eb55c9b2a8c71b4add168 100755 (executable)
@@ -509,6 +509,25 @@ echo "### making sure we are back to normal..."
 monkeysphere-authentication update-users $(whoami)
 ssh_test true
 
+# check ssh authorized_key options
+echo
+echo "##################################################"
+echo "### checking ssh authorized_key option support..."
+cp "$TESTHOME"/.monkeysphere/authorized_user_ids{,.bak}
+echo ' no-X11-forwarding' >>"$TESTHOME"/.monkeysphere/authorized_user_ids
+echo '    no-port-forwarding' >>"$TESTHOME"/.monkeysphere/authorized_user_ids
+echo ' command="/bin/false"' >>"$TESTHOME"/.monkeysphere/authorized_user_ids
+monkeysphere-authentication update-users $(whoami)
+ssh_test /bin/true 1
+ssh_test /bin/false 1
+mv "$TESTHOME"/.monkeysphere/authorized_user_ids{.bak,}
+
+# ensure we're back to normal:
+echo
+echo "##################################################"
+echo "### making sure we are back to normal..."
+monkeysphere-authentication update-users $(whoami)
+ssh_test true
 
 echo
 echo "##################################################"