I use this in emacs to connect and execute commands remotely:
#+BEGIN_SRC sh :dir /ssh:email@example.com:/tmp pwd #+END_SRC #+RESULTS: : /tmp
Recently, people have gone "cloud scaling" so the IP address 18.104.22.168 changes often.
The IP address can be determined by this bash:
sentinel list staging | grep InService | ruby -ne '$_=~/\A (.*?) /; puts $1' | tail -n 1
How can I modify the header
+BEGIN_SRC sh :dir /ssh:firstname.lastname@example.org:/tmp
to dynamically determine the IP address.