I use this in emacs to connect and execute commands remotely:
#+BEGIN_SRC sh :dir /ssh:firstname.lastname@example.org:/tmp pwd #+END_SRC #+RESULTS: : /tmp
Recently, people have gone "cloud scaling" so the IP address 188.8.131.52 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:email@example.com:/tmp
to dynamically determine the IP address.