diff options
author | Jameson Graef Rollins <jrollins@phys.columbia.edu> | 2008-06-16 14:52:20 -0400 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@phys.columbia.edu> | 2008-06-16 15:17:41 -0400 |
commit | 62ff87e0328bc1406979656029a5e313839cac35 (patch) | |
tree | 00520511a7d868a5cf93a3036db282050c34134f /src/monkeysphere-ssh-proxycommand | |
parent | c32302172e3533b2170329206ff011d6e3a26a49 (diff) |
Add log output for keyserver checking.
Fix bug in proxy command to export CHECK_KEYSERVER variable.
Diffstat (limited to 'src/monkeysphere-ssh-proxycommand')
-rwxr-xr-x | src/monkeysphere-ssh-proxycommand | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/monkeysphere-ssh-proxycommand b/src/monkeysphere-ssh-proxycommand index ec162ab..3887e48 100755 --- a/src/monkeysphere-ssh-proxycommand +++ b/src/monkeysphere-ssh-proxycommand @@ -40,11 +40,12 @@ fi # check for the host key in the known_hosts file hostKey=$(ssh-keygen -F "$HOST") -# if the host key is not found in the known_hosts file, -# check the keyserver -if [ -z "$hostKey" ] ; then - CHECK_KEYSERVER="true" +# if the host key is found in the known_hosts file, +# don't check the keyserver +if [ "$hostKey" ] ; then + CHECK_KEYSERVER="false" fi +export CHECK_KEYSERVER # update the known_hosts file for the host monkeysphere update-known-hosts "$HOST" |