I have a particular setup that requires this sequence of steps:
sudo su otheruser
- an ssh key on my laptop that allows me to
- an ssh key on host1 that allows me to
I do not have permission to
My goal is: can I automate this? Preferably in my laptop's ~/.ssh/config file, so I can simply do:
...and let the config take care of the details, ideally including the password?
I can already get 2/3 of the way there with the following ssh config:
ProxyJump host1 host2
The above allows me to
ssh mostly_there but I still have to
sudo su otheruser.