Run a command on connection
Example from cmdline: ssh host -t remote_cmd
I often do this to connect to a screen session on a remote host.

Hello,
This feature is available for subscribers for a long time already.
You can add snippets in the app and set them for hosts or groups to be executed on when the session starts.
Hope it helps.
Thanks
4 comments
Comments are closed-
Anonymous commented
I miss my typing ls -larhx */* on my old mac and watching a stream of random stuff!
-
Anonymous commented
This is necessary to make the terminal practical for many use cases. Running a program upon connection instead of presenting a shell is a common use of ssh
-
Anonymous commented
This could be great to run tmux or screen automatically to attach to a previous session, ideal to avoid loosing state when you lost connection!
-
Anonymous commented
Yeah! Maybe we can have an Events panel for that. You can create a new event, it'll send the command and exit back out with one click.