diff options
| author | Dante Catalfamo | 2020-11-25 19:11:02 -0500 | 
|---|---|---|
| committer | Dante Catalfamo | 2020-11-25 19:11:02 -0500 | 
| commit | 224ac5d85bfc5943d050d1f08b8f8ba4ec1d23e8 (patch) | |
| tree | d111fb9b7881b676c9bffa2417ea6d017ca22bc7 /content/posts | |
| parent | 45b6167121e1ef573b2acbfa4859cdd4b2b61ea7 (diff) | |
| download | blog-224ac5d85bfc5943d050d1f08b8f8ba4ec1d23e8.tar.gz blog-224ac5d85bfc5943d050d1f08b8f8ba4ec1d23e8.tar.bz2 blog-224ac5d85bfc5943d050d1f08b8f8ba4ec1d23e8.zip | |
ox-ssh: last paragraph, better examples
Diffstat (limited to 'content/posts')
| -rw-r--r-- | content/posts/WIP-org-ssh-export/index.org | 24 | 
1 files changed, 19 insertions, 5 deletions
| diff --git a/content/posts/WIP-org-ssh-export/index.org b/content/posts/WIP-org-ssh-export/index.org index 5527b4c..f1f8b63 100644 --- a/content/posts/WIP-org-ssh-export/index.org +++ b/content/posts/WIP-org-ssh-export/index.org @@ -103,6 +103,9 @@ adding [[https://orgmode.org/manual/Tags.html][tags]], [[https://orgmode.org/man       :SSH_USER: admin       :END:       - [[https://192.168.0.12][WebUI]] +     - DHCP +     - DNS +     - OSPF  ,*** Containers  ,**** pihole @@ -111,15 +114,16 @@ adding [[https://orgmode.org/manual/Tags.html][tags]], [[https://orgmode.org/man       :OS:       Debian       :SSH_USER: pi       :END: -     [[http://192.168.0.23/admin/][WebUI]] +     - [[http://192.168.0.23/admin/][WebUI]] -,**** test +,**** ubuntu       :PROPERTIES:       :IP:       192.168.0.22 -     :OS:       Debian +     :OS:       Ubuntu       :SSH_USER: dante       :END: - +     - Prometheus +     - Shadowsocks  #+end_src  Finally to keep my SSH config up to date, I wrote [[https://github.com/dantecatalfamo/ox-ssh][ox-ssh]]. A backend @@ -130,9 +134,19 @@ configuration file. It [[https://github.com/dantecatalfamo/ox-ssh#usage][support  OpenSSH has, so I can maintain my entire SSH client list from within  my org mode file. -#+caption: From the GitHub readme +#+caption: Property drawers are folded by default in org mode, but expanded here for context.  [[file:ox-ssh-example.jpg]]  For completeness, I also added a variable that lets me set a header to  the configuration when exporting. This lets me add options which apply  to all hosts, like keyring support for MacOS. + +With this new setup, I just have a single version controlled +=Servers.org= file which I keep all the relevant information in. +Whenever I change any details related to a server, I simply press +@@html: <kbd><kbd>Ctrl</kbd> + <kbd>c</kbd></kbd>@@ +@@html: <kbd><kbd>Ctrl</kbd> + <kbd>e</kbd></kbd>@@ +to bring up the org export dispatch, then +@@html: <kbd>s</kbd>@@ to select =ox-ssh=, and +@@html: <kbd>x</kbd>@@ to overwrite my existing ssh config file with +the newly generated one. | 
