I have a Linux server, where when I connect by PuTTY, I first need to log in using a non-root account (let's say user1
), and then issue the command su root
or su - root
to log in to the root
account. I cannot log in directly to the root
account as such direct access is blocked for security reasons.
I would like to know how such a setup can be achieved in WinSCP, a GUI file manager for Unix/Linux servers. I have tried tunnelling to the same IP address but this does not work as I believe this attempts a "direct" login to the root
account through the tunnel connection established using user1
account. Setting Shell to sudo su -
also does not work.
How do I get WinSCP to emulate the su root
or su - root
indirect login as it can be done in PuTTY?
sudo -s
or any variant of the Shell option that "works" simply kicks me back to the Login window (possibly because of required password entry). As for the second part, I cannot make changes to thesudoers
file on the server as this would be a violation of our security protocols. So I guess I can't achieve this without making server-side changes?