diff options
author | Jameson Graef Rollins <jrollins@phys.columbia.edu> | 2008-06-10 18:38:46 -0400 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@phys.columbia.edu> | 2008-06-10 18:38:46 -0400 |
commit | be186e427ac34812e2b2a55489ae55fe2341f6a0 (patch) | |
tree | 09e8aa7a9000adc449d6b6328b041a88d06643c8 /src/monkeysphere-ssh-proxycommand | |
parent | 48cd196efb86f8661fbf77552ef6c26b11fe20c6 (diff) |
Cleaned/fix up update-userid function. also some general cleanup.
Diffstat (limited to 'src/monkeysphere-ssh-proxycommand')
-rwxr-xr-x | src/monkeysphere-ssh-proxycommand | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/monkeysphere-ssh-proxycommand b/src/monkeysphere-ssh-proxycommand index 1724966..417d013 100755 --- a/src/monkeysphere-ssh-proxycommand +++ b/src/monkeysphere-ssh-proxycommand @@ -1,10 +1,17 @@ #!/bin/sh -e -# MonkeySphere ssh ProxyCommand hook -# Proxy command script to initiate a monkeysphere known_hosts update -# before an ssh connection to host is established. -# Can be added to ~/.ssh/config as follows: -# ProxyCommand monkeysphere-ssh-proxycommand %h %p +# monkeysphere-ssh-proxycommand: MonkeySphere ssh ProxyCommand hook +# +# The monkeysphere scripts are written by: +# Jameson Rollins <jrollins@fifthhorseman.net> +# +# They are Copyright 2008, and are all released under the GPL, version 3 +# or later. + +# This is meant to be run as an ssh ProxyCommand to initiate a +# monkeysphere known_hosts update before an ssh connection to host is +# established. Can be added to ~/.ssh/config as follows: +# ProxyCommand monkeysphere-ssh-proxycommand %h %p HOST="$1" PORT="$2" @@ -12,5 +19,5 @@ PORT="$2" # update the known_hosts file for the host monkeysphere update-known-hosts "$HOST" -# make a netcat connection to host for the ssh connection +# exec a netcat passthrough to host for the ssh connection exec nc "$HOST" "$PORT" |