summaryrefslogtreecommitdiffstats
path: root/content/posts/WIP-org-ssh-export/index.org
diff options
context:
space:
mode:
Diffstat (limited to 'content/posts/WIP-org-ssh-export/index.org')
-rw-r--r--content/posts/WIP-org-ssh-export/index.org23
1 files changed, 19 insertions, 4 deletions
diff --git a/content/posts/WIP-org-ssh-export/index.org b/content/posts/WIP-org-ssh-export/index.org
index d3a7875..719fab0 100644
--- a/content/posts/WIP-org-ssh-export/index.org
+++ b/content/posts/WIP-org-ssh-export/index.org
@@ -2,14 +2,14 @@
#+DATE: 2020-10-19T21:22:28-04:00
#+DRAFT: true
#+DESCRIPTION:
-#+TAGS[]: emacs org ssh
-#+KEYWORDS[]: emacs org ssh
+#+TAGS[]: emacs org-mode ssh
+#+KEYWORDS[]: emacs org-mode ssh
#+SLUG:
#+SUMMARY:
I manage a lot of servers. Some are serving static content like this
-blog, with others running services like Nextcloud, ZNC, Shadowsocks,
-or Mumble. I have one or two game servers to play with my family and
+blog, with others running services like [[https://nextcloud.com/][Nextcloud]], [[https://wiki.znc.in/ZNC][ZNC]], [[https://shadowsocks.org/en/index.html][Shadowsocks]],
+or [[https://www.mumble.info/][Mumble]]. I have one or two game servers to play with my family and
friends. These are spread across two providers because for cost and
geographic reasons.
@@ -68,3 +68,18 @@ details I want to remember.
- Mumble
- [[https://example.net][nginx]]
#+END_SRC
+
+From there I added either an =IP= or =Hostname= properties to each
+heading, along with other information about the system like =OS=,
+=SSH_USER=, etc. This allows me to use org-mode's [[https://orgmode.org/manual/Sparse-Trees.html][sparse trees]] to
+search for, say, all VMs running OpenBSD. It also allows me to manage
+servers like anything else in org-mode, adding [[https://orgmode.org/manual/Tags.html][tags]], [[https://orgmode.org/manual/TODO-Items.html#TODO-Items][TODO]] entries,
+[[https://orgmode.org/manual/Working-with-Source-Code.html#Working-with-Source-Code][code blocks]], [[https://orgmode.org/manual/Hyperlinks.html#Hyperlinks][hyperlinks]], [[https://orgmode.org/manual/Tables.html#Tables][tables]], [[https://orgmode.org/manual/Attachments.html#Attachments][attachments]], putting details in
+[[https://orgmode.org/manual/Drawers.html#Drawers][drawers]], etc.
+
+Finally to keep my SSH config up to date, I wrote [[https://github.com/dantecatalfamo/ox-ssh][ox-ssh]]. A backend
+for org-mode that lets you export your buffer as an SSH configuration
+file. It takes all of the properties from the server headings and
+turns them into entries in a configuration file. It [[https://github.com/dantecatalfamo/ox-ssh#usage][supports]] every
+client configuration option OpenSSH has, so I can maintain my entire
+SSH client list from within my org-mode file.