summaryrefslogtreecommitdiff
path: root/doc/README
blob: e10f79b4ff2624c68b94311646a8cc07db379c50 (plain)
  1. Monkeysphere User README
  2. ========================
  3. As a regular user on a system where the monkeysphere package is
  4. installed, you probably want to do a few things:
  5. Keeping your keyring up-to-date
  6. -------------------------------
  7. Regularly refresh your GnuPG keyring from the keyservers. This can be
  8. done with a simple cronjob. An example of crontab line to do this is:
  9. 0 12 * * * /usr/bin/gpg --refresh-keys
  10. This would refresh your keychain every day at noon.
  11. Keeping your known_hosts file in sync with your keyring
  12. -------------------------------------------------------
  13. With your keyring updated, you want to make sure that openssh can
  14. still see the most recent trusted information about who the various
  15. hosts are. This can be done with the monkeysphere-ssh-proxycommand
  16. (see next section) or with the update-known_hosts command:
  17. $ monkeysphere update-known_hosts
  18. This will command will check to see if there is an openpgp key for
  19. each (non-hashed) host listed in the known_hosts file, and then add
  20. the key for that host to the known_hosts file if one is found. This
  21. command could be added to a crontab as well, if desired.
  22. Using monkeysphere-ssh-proxycommand(1)
  23. --------------------------------------
  24. The best way to handle host keys is to use the monkeysphere ssh proxy
  25. command. This command will make sure the known_hosts file is
  26. up-to-date for the host you are connecting to with ssh. The best way
  27. to integrate this is to add the following line to the "Host *" section
  28. of your ~/.ssh/config file:
  29. ProxyCommand monkeysphere-ssh-proxycommand %h %p
  30. Setting up an OpenPGP authentication key
  31. ----------------------------------------
  32. First things first: you'll need to create a new subkey for your
  33. current key, if you don't already have one. If your OpenPGP key is
  34. keyid $GPGID, you can set up such a subkey relatively easily with:
  35. $ monkeysphere gen-subkey $GPGID
  36. Using your OpenPGP authentication key for SSH
  37. ---------------------------------------------
  38. FIXME: Sending the key to the ssh-agent?
  39. FIXME: using the key with a single session?
  40. NOTE: the current version of openpgp2ssh does *not* deal well with
  41. encrypted keys (as of 2008-07-26)
  42. Miscellaneous
  43. -------------
  44. Users can also maintain their own authorized_keys files, for users
  45. that would be logging into their accounts. This is done with the
  46. update-authorized_keys command:
  47. $ monkeysphere update-authorized_keys
  48. This command will take all the user IDs listed in the
  49. ~/.config/monkeysphere/authorized_user_ids file and check to see if
  50. there are acceptable keys for those user IDs available. If so, they
  51. will be added to the ~/.ssh/authorized_keys file.