I frequently connect to servers through a user I share with other colleagues, every time I connect to each server I execute a couple of commands like
set -o vi, etc.
I would want to know if there is a way to tell the ssh client utility to execute those on the remote server before handing me the control.
Basically something like this:
echo "bash; set -o vi; <DONT_EXIT>;" | ssh user@host
Anything built in the ssh client utility? Any workarounds that are executed from MY side? I am aware of workarounds on the server side, which are not what I am looking for. I can't find this anywhere, so, I am basically confirming that it actually can't be done.
I am using Linux with the default OpenSSH ssh utility.