I frequently connect to ephemeral servers. I'd like to be able to set up some commonly-used aliases on those servers upon connection to them. I thought maybe I could create a bash function/alias which took the target machine's hostname as an argument, then did the following
- open an ssh session to that server
- copy a file of aliases I'd like to use on that server to the server and
source
them so they are usable immediately
Is this straight-forward to do? I could probably figure this out but since an answer didn't come up in search it's no harm to ask here and give someone the points, right? :)