summaryrefslogtreecommitdiff
path: root/doc/george/host-key-publication
blob: 03e2510f2cb649c9fe0f9ae045a94f6120bdad4c (plain)
  1. 2008-06-19 02:34:57-0400
  2. ------------------------
  3. Adding george's host key to the monkeysphere was more complicated than
  4. it needed to be.
  5. As the server admin, i did (accepting the defaults where possible):
  6. monkeysphere-server gen-key
  7. KEYID=$(GNUPGHOME=/etc/monkeysphere/gnupg gpg --with-colons --list-key =ssh://$(hostname --fqdn) | grep ^pub: | cut -f5 -d:)
  8. (umask 077 && GNUPGHOME=/etc/monkeysphere/gnupg gpg --export-secret-key $KEYID | openpgp2ssh $KEYID >/etc/monkeysphere/ssh_host_rsa_key)
  9. # modify /etc/ssh/sshd_config to remove old host keys lines, and
  10. # add new line: HostKey /etc/monkeysphere/ssh_host_rsa_key
  11. /etc/init.d/ssh restart
  12. KEYSERVER=george.riseup.net monkeysphere-server publish-key
  13. # (needed to publish by hand here because of reasonable sanity checks)
  14. monkeysphere-server show-fingerprint
  15. # then from a remote host:
  16. gpg --keyserver george.riseup.net --search =ssh://george.riseup.net
  17. gpg --fingerprint --sign-key =ssh://george.riseup.net
  18. KEYID=$(gpg --with-colons --list-key =ssh://george.riseup.net | grep ^pub: | cut -f5 -d:)
  19. gpg --keyserver george.riseup.net --send "$KEYID"
  20. gpg --keyserver george.riseup.net --send "$MYGPGID"
  21. How could this have been streamlined?