Merge commit 'dkg/master'
authorMatt Goins <mjgoins@openflows.com>
Sat, 21 Feb 2009 22:46:57 +0000 (17:46 -0500)
committerMatt Goins <mjgoins@openflows.com>
Sat, 21 Feb 2009 22:46:57 +0000 (17:46 -0500)
packaging/debian/NEWS
src/monkeysphere-host
src/share/m/subkey_to_ssh_agent
tests/basic
website/getting-started-admin.mdwn
website/getting-started-user.mdwn

index 3fceea248b1c61ebcb1126328ced56dba26659f5..8551c87df10613d9cc9ccf7453591845b9bfc291 100644 (file)
@@ -6,7 +6,7 @@ monkeysphere (0.23-1) unstable; urgency=low
     its functionality has been folded into monkeysphere as a subcommand.
     So if you are currently using: 
      ssh -oProxyCommand='monkeysphere-ssh-proxycommand %h %p'
-    plese use instead:
+    please use instead:
      ssh -oProxyCommand='monkeysphere ssh-proxycommand %h %p'
   * For sysadmins: monkeysphere-server has been split into
     monkeysphere-host (for publishing the ssh host key of your machine)
index 540a8ab1c0e3a531ef13abf72cc5afbf761c27fa..1b0de0cd7c4a60eec47af82d48eb663d3302da41 100755 (executable)
@@ -163,6 +163,8 @@ find_host_userid() {
 # show info about the host key
 show_key() {
     local GNUPGHOME
+    local TMPSSH
+    local revokers
 
     # tmp gpghome dir
     export GNUPGHOME=$(msmktempdir)
@@ -189,6 +191,17 @@ show_key() {
        | grep -v "^${GNUPGHOME}/pubring.gpg$" \
        | egrep -v '^-+$'
 
+    # list revokers, if there are any
+    revokers=$(gpg --list-keys --with-colons --fixed-list-mode \
+       | awk -F: '/^rvk:/{ print $10 }' )
+    if [ "$revokers" ] ; then
+       echo "The following keys are allowed to revoke this host key:"
+       for key in $revokers ; do
+           echo "revoker: $key"
+       done
+       echo
+    fi
+
     # list the pgp fingerprint
     echo "OpenPGP fingerprint: $HOST_FINGERPRINT"
 
index 7fb2fdb302e98f341a36858eedafcb219599ce0f..4ce14f898709a4002de77b075bcde9b27f746457 100644 (file)
@@ -13,6 +13,9 @@
 
 # try to add all authentication subkeys to the agent
 
+# FIXME: what if you only want to add one authentication subkey to the
+# agent?
+
 subkey_to_ssh_agent() {
     local sshaddresponse=0
     local secretkeys
@@ -68,7 +71,6 @@ You might want to 'monkeysphere gen-subkey'"
     trap "rm -rf $workingdir" EXIT
     umask 077
     mkfifo "$workingdir/passphrase"
-    keysuccess=1
 
     # FIXME: we're currently allowing any other options to get passed
     # through to ssh-add.  should we limit it to known ones?  For
@@ -88,7 +90,7 @@ You might want to 'monkeysphere gen-subkey'"
        if [ "$1" = '-d' ]; then
            # we're removing the subkey:
            gpg_user --export "0x${subkey}!" | openpgp2ssh "$subkey" > "$workingdir/$kname"
-           (cd "$workingdir" && ssh-add -d "$kname")
+           (cd "$workingdir" && ssh-add -d "$kname") || keysuccess="$?"
        else
            # we're adding the subkey:
            mkfifo "$workingdir/$kname"
@@ -98,8 +100,8 @@ You might want to 'monkeysphere gen-subkey'"
            (cd "$workingdir" && DISPLAY=nosuchdisplay SSH_ASKPASS=/bin/false ssh-add "$@" "$kname" </dev/null )&
 
            passphrase_prompt "Enter passphrase for key $kname: " "$workingdir/passphrase"
-           wait %2
-       fi || keysuccess="$?"
+           wait %2 || keysuccess="$?"
+       fi
 
        rm -f "$workingdir/$kname"
     done
@@ -108,7 +110,7 @@ You might want to 'monkeysphere gen-subkey'"
     rm -rf "$workingdir"
 
     # FIXME: sort out the return values: we're just returning the
-    # success or failure of the final authentication subkey in this
-    # case.  What if earlier ones failed?
+    # failure code of the last authentication subkey which fails.
+    # what if more than one authentication subkey fails?
     return "$keysuccess"
 }
index 9c5b280a7134b22a32c4e0336db84ced3ddf5f5c..9308e21295115968964753e1825f4a46a3ef90b8 100755 (executable)
@@ -51,6 +51,8 @@ gpgadmin() {
 # test ssh connection
 # first argument is expected return code from ssh connection
 ssh_test() {
+    local RETURN=0
+
     umask 0077
 
     CODE=${1:-0}
index ca44956986827998494591841fc12116de7d1f34..bff1773a9676a05057cf601ac849cca11b353f7f 100644 (file)
@@ -1,6 +1,9 @@
 Monkeysphere Server Administrator README
 ========================================
 
+       Note: This documentation is for Monkeysphere version 0.23 or later.
+       If you are running a version prior to 0.23, we recommend that you upgrade.
+
 As the administrator of an SSH server, you can take advantage of the
 Monkeysphere in two ways:
 
index 9e2be26bc71f38e650f519f59764d878f7ad3b39..96fd54e81811e5bf83d4c59ebcde1b560fd6051a 100644 (file)
@@ -1,6 +1,9 @@
 Monkeysphere User README
 ========================
 
+       Note: This documentation is for Monkeysphere version 0.23 or later.
+       If you are running a version prior to 0.23, we recommend that you upgrade.
+
 You don't have to be an OpenSSH or OpenPGP expert to use the
 Monkeysphere.  However, you should be comfortable using secure shell
 (ssh), and you should already have an OpenPGP key before you begin.