summaryrefslogtreecommitdiff
path: root/man/man8/monkeysphere-host.8
blob: 062f0aadb68aa8e76cf56b736888c63a2538aad1 (plain)
  1. .TH MONKEYSPHERE-SERVER "8" "June 2008" "monkeysphere" "User Commands"
  2. .SH NAME
  3. monkeysphere-host \- Monkeysphere host admin tool.
  4. .SH SYNOPSIS
  5. .B monkeysphere-host \fIsubcommand\fP [\fIargs\fP]
  6. .br
  7. .B monkeysphere-host expert \fIexpert-subcommand\fP [\fIargs\fP]
  8. .SH DESCRIPTION
  9. \fBMonkeysphere\fP is a framework to leverage the OpenPGP web of trust
  10. for OpenSSH authentication. OpenPGP keys are tracked via GnuPG, and
  11. added to the authorized_keys and known_hosts files used by OpenSSH for
  12. connection authentication.
  13. \fBmonkeysphere-host\fP is a Monkeysphere server admin utility.
  14. .SH SUBCOMMANDS
  15. \fBmonkeysphere-host\fP takes various subcommands:
  16. .TP
  17. .B show-key
  18. Output information about host's OpenPGP and SSH keys. `s' may be used
  19. in place of `show-key'.
  20. .TP
  21. .B extend-key EXPIRE
  22. Extend the validity of the OpenPGP key for the host until EXPIRE from
  23. the present. If EXPIRE is not specified, then the user will be
  24. prompted for the extension term. Expiration is specified like GnuPG
  25. does:
  26. .nf
  27. 0 = key does not expire
  28. <n> = key expires in n days
  29. <n>w = key expires in n weeks
  30. <n>m = key expires in n months
  31. <n>y = key expires in n years
  32. .fi
  33. `e' may be used in place of `extend-key'.
  34. .TP
  35. .B add-hostname HOSTNAME
  36. Add a hostname user ID to the server host key. `n+' may be used in
  37. place of `add-hostname'.
  38. .TP
  39. .B revoke-hostname HOSTNAME
  40. Revoke a hostname user ID from the server host key. `n-' may be used
  41. in place of `revoke-hostname'.
  42. .TP
  43. .B add-revoker FINGERPRINT
  44. Add a revoker to the host's OpenPGP key. `o' may be be used in place
  45. of `add-revoker'.
  46. .TP
  47. .B revoke-key
  48. Revoke the host's OpenPGP key. `r' may be used in place of
  49. `revoke-key'.
  50. .TP
  51. .B publish-key
  52. Publish the host's OpenPGP key to the keyserver. `p' may be used in
  53. place of `publish-key'.
  54. .TP
  55. .B import-key [NAME[:PORT]]
  56. Import a pem-encoded ssh secret host key, from stdin. NAME[:PORT] is
  57. used to specify the hostname (and port) used in the user ID of the new
  58. OpenPGP key. If NAME is not specified, then the system
  59. fully-qualified domain name will be used (ie. `hostname -f'). If PORT
  60. is not specified, the no port is added to the user ID, which means
  61. port 22 is assumed. `i' may be used in place of `import-key'.
  62. .TP
  63. .B diagnostics
  64. Review the state of the monkeysphere server host key and report on
  65. suggested changes. Among other checks, this includes making sure
  66. there is a valid host key, that the key is published, that the sshd
  67. configuration points to the right place, etc. `d' may be used in
  68. place of `diagnostics'.
  69. .TP
  70. .B help
  71. Output a brief usage summary. `h' or `?' may be used in place of
  72. `help'.
  73. .TP
  74. .B version
  75. show version number
  76. .SH SETUP HOST AUTHENTICATION
  77. To enable host verification via the monkeysphere, the host's key must
  78. be published to the Web of Trust. This is not done by default. To
  79. publish the host key to the keyservers, run the following command:
  80. $ monkeysphere-host publish-key
  81. In order for users logging into the system to be able to identify the
  82. host via the monkeysphere, at least one person (e.g. a server admin)
  83. will need to sign the host's key. This is done using standard OpenPGP
  84. keysigning techniques, usually: pull the key from the keyserver,
  85. verify and sign the key, and then re-publish the signature. Once an
  86. admin's signature is published, users logging into the host can use it
  87. to validate the host's key.
  88. .SH ENVIRONMENT
  89. The following environment variables will override those specified in
  90. the config file (defaults in parentheses):
  91. .TP
  92. MONKEYSPHERE_LOG_LEVEL
  93. Set the log level (INFO). Can be SILENT, ERROR, INFO, VERBOSE, DEBUG, in
  94. increasing order of verbosity.
  95. .TP
  96. MONKEYSPHERE_KEYSERVER
  97. OpenPGP keyserver to use (pool.sks-keyservers.net).
  98. .SH FILES
  99. .TP
  100. /etc/monkeysphere/monkeysphere-host.conf
  101. System monkeysphere-host config file.
  102. .TP
  103. /var/lib/monkeysphere/host/ssh_host_rsa_key
  104. Copy of the host's private key in ssh format, suitable for use by
  105. sshd.
  106. .SH AUTHOR
  107. Written by:
  108. Jameson Rollins <jrollins@fifthhorseman.net>,
  109. Daniel Kahn Gillmor <dkg@fifthhorseman.net>,
  110. Matthew Goins <mjgoins@openflows.com>
  111. .SH SEE ALSO
  112. .BR monkeysphere (1),
  113. .BR monkeysphere-authentication (8),
  114. .BR monkeysphere (7),
  115. .BR gpg (1),
  116. .BR ssh (1)