summaryrefslogtreecommitdiff
path: root/man/man1/monkeysphere-ssh-proxycommand.1
blob: a31a9d1598b7f671dce9dca6916be9faed6275b9 (plain)
  1. .TH MONKEYSPHERE-SSH-PROXYCOMMAND "1" "June 2008" "monkeysphere 0.1" "User Commands"
  2. .SH NAME
  3. monkeysphere-ssh-proxycommand \- MonkeySphere ssh ProxyCommand script
  4. .SH DESCRIPTION
  5. \fBmonkeysphere-ssh-proxy\fP is an ssh proxy command that can be used
  6. to trigger a monkeysphere update of the known_hosts file for the hosts
  7. that are being connected to. It is meant to be run as an ssh
  8. ProxyCommand. This can either be done by specifying the proxy command
  9. on the command line:
  10. .B ssh -o ProxyCommand="monkeysphere-ssh-proxycommand %h %p" ...
  11. or by adding the following line to your ~/.ssh/config script:
  12. .B ProxyCommand monkeysphere-ssh-proxycommand %h %p
  13. The script can easily be incorporated into other ProxyCommand scripts
  14. by calling it with the "--no-connect" option, i.e.:
  15. .B monkeysphere-ssh-proxycommand --no-connect "$HOST" "$PORT"
  16. This will run everything but will not exec netcat to make the tcp
  17. connection to the host.
  18. .SH KEYSERVER CHECKING
  19. The proxy command has a fairly nuanced policy for when keyservers are
  20. queried when processing host. If the host userID is not found in
  21. either the user's keyring or in the known_hosts file, then the
  22. keyserver is queried for the host userID. If the host userID is found
  23. in the user's keyring, then the keyserver is not checked. This
  24. assumes that the keyring is kept up-to-date, in a cron job or the
  25. like, so that revocations are properly handled. If the host userID is
  26. not found in the user's keyring, but the host is listed in the
  27. known_hosts file, then the keyserver is not checked. This last policy
  28. might change in the future, possibly by adding a deferred check, so
  29. that hosts that go from non-monkeysphere-enabled to
  30. monkeysphere-enabled will be properly checked.
  31. .SH ENVIRONMENT VARIABLES
  32. All environment variables defined in monkeysphere(1) can also be used
  33. for the proxycommand, with one note:
  34. .TP
  35. MONKEYSPHERE_CHECK_KEYSERVER
  36. Setting this variable (to `true' or `false') will override the policy
  37. defined in KEYSERVER CHECKING above.
  38. .SH AUTHOR
  39. Written by Jameson Rollins <jrollins@fifthhorseman.net>
  40. .SH SEE ALSO
  41. .BR monkeysphere (1),
  42. .BR ssh (1),
  43. .BR gpg (1)