I'm in the situation of having to connect to various systems via
ssh to do some quick work and then leave without a trace. Before I do any work, however, I would like to set up some aliases to save time, aliases that don't persist after my session is terminated.
Given the nature of the unknown environments, I want to avoid relying on
.bashrc since I don't want to check for, copy, parse, or in any way handle existing files beyond what's absolutely necessary for the work I'm doing.
Ideally, I should be able to add commands to be executed before my
ssh login prompt inside
~/.ssh/rc, but I can't get
ssh to execute the file when I make a connection.
I've made sure to enable the
PermitUserRC option inside
.ssh/rc have permissions set to
How can I get
ssh to execute
I'm on MacOS Catalina 10.15.7 running
zsh 5.7.1 inside Terminal 2.10.