Dear Maintainer,
I had a hard time debugging a disturbing and seemingly intermittent
failure while using the monkeysphere . When trying to connect to a small
subset of the servers I usually connect to, I immediately got a
connection refused error from ssh, before I even started connecting to
the remote server.
When disabling the monkeysphere-proxycommand in ~/.ssh/config I was able
to successfully connect to these hosts.
After much hand-wringing and debugging, I tried calling:
MONKEYSPHERE_LOG_LEVEL=DEBUG /usr/bin/monkeysphere ssh-proxycommand <host>
With working hosts, we get an SSH welcome message. With the non-working
hosts I received no feedback and exit code 1.
I finally tracked it down:
ssh-keygen -F <host> -f /home/jamie/.ssh/known_hosts
Which generated a useful error about my known_hosts file having a line
that was too long (somehow I had inserted garbage into my known_hosts
file which prevent ssh-keygen from working properly).
So, the small subset of hosts that were failing were the ones that
weren't in my OpenPGP keyring (which makes sense ... mostly this was
affecting my access to the non-public virtual guests on my laptop.).
I *think* the proper fixes are:
* Check the error code when calling ssh-keygen and return a reasonable
error to the user if it fails.
* Add more feedback to the ssh-proxycommand subcommand when
MONKEYSPHERE_LOG_LEVEL=DEBUG
jamie (sjj)