From: Daniel Kahn Gillmor Date: Fri, 13 Jun 2008 16:25:58 +0000 (-0400) Subject: Merge commit 'jrollins/master' X-Git-Tag: monkeysphere_0.1-1~38 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=b93d6398d799376a572414a30d7b4f02beadd137;hp=ca5d2766c5c143a34b095c5dcb3c829285b2c28e;p=monkeysphere.git Merge commit 'jrollins/master' --- diff --git a/debian/monkeysphere.manpages b/debian/monkeysphere.manpages index 6e2cb92..a8f6c16 100644 --- a/debian/monkeysphere.manpages +++ b/debian/monkeysphere.manpages @@ -1,3 +1,4 @@ man/man1/monkeysphere.1 man/man1/openpgp2ssh.1 +man/man1/monkeysphere-ssh-proxycommand.1 man/man8/monkeysphere-server.8 diff --git a/man/man1/monkeysphere-ssh-proxycommand.1 b/man/man1/monkeysphere-ssh-proxycommand.1 new file mode 100644 index 0000000..41a95aa --- /dev/null +++ b/man/man1/monkeysphere-ssh-proxycommand.1 @@ -0,0 +1,25 @@ +.TH MONKEYSPHERE-SSH-PROXYCOMMAND "1" "June 2008" "monkeysphere 0.1" "User Commands" +.SH NAME +monkeysphere-ssh-proxycommand \- MonkeySphere ssh ProxyCommand script +.PD +.SH SYNOPSIS +.B ssh -o ProxyCommand="monkeysphere-ssh-proxycommand %h %p" ... +.PD +.SH DESCRIPTION +.PP +MonkeySphere is a system to leverage the OpenPGP Web of Trust for ssh +authentication and encryption. OpenPGP keys are tracked via GnuPG, +and added to the ssh authorized_keys and known_hosts files to be used +for authentication and encryption of ssh connection. + +\fBmonkeysphere-ssh-proxy\fP is an ssh proxy command that can be used +to trigger a monkeysphere update of the known_hosts file for the hosts +that are being connected to. +.PD +.SH AUTHOR +Written by Jameson Rollins +.PD +.SH SEE ALSO +.BR monkeypshere (1), +.BR ssh (1), +.BR gpg (1) diff --git a/man/man1/monkeysphere.1 b/man/man1/monkeysphere.1 index 410a5d7..636adcb 100644 --- a/man/man1/monkeysphere.1 +++ b/man/man1/monkeysphere.1 @@ -1,8 +1,10 @@ .TH MONKEYSPHERE "1" "June 2008" "monkeysphere 0.1" "User Commands" .SH NAME monkeysphere \- MonkeySphere client user interface +.PD .SH SYNOPSIS .B monkeysphere \fIcommand\fP [\fIargs\fP] +.PD .SH DESCRIPTION .PP MonkeySphere is a system to leverage the OpenPGP Web of Trust for ssh @@ -102,6 +104,7 @@ Host keys cache directory. .PD .SH AUTHOR Written by Jameson Rollins +.PD .SH SEE ALSO .BR ssh (1), .BR gpg (1), diff --git a/src/monkeysphere b/src/monkeysphere index 5d865c9..6e71765 100755 --- a/src/monkeysphere +++ b/src/monkeysphere @@ -132,6 +132,11 @@ msAuthorizedKeys="$MS_HOME"/authorized_keys # make sure gpg home exists with proper permissions mkdir -p -m 0700 "$GNUPGHOME" +# make sure the user monkeysphere home directory exists +mkdir -p -m 0700 "$MS_HOME" +mkdir -p "$hostKeysCacheDir" +mkdir -p "$userKeysCacheDir" + case $COMMAND in 'update-known_hosts'|'update-known-hosts'|'k') MODE='known_hosts'