~/.ssh/config file so that I can easily enter
ssh myserver and it'll provide the correct username, port, hostname, identity file, etc.
However for many servers, the first thing I do is enter
su - to log in as root. I can do this all in one command on the command line like so:
ssh myserver -t su -. Is there something I can add to my
~/.ssh/config file that'll do that for me? I want to be able to do
ssh myserver-root and it'll do the same thing as
ssh myserver -t su -?
I know about
PermitRootLogin, that's off for this server, and I'm reluctant to turn that on. I'd much rather see if there's a way to do this using ssh on the client side.