1
1
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?
Maybe this page will help http://winscp.net/eng/docs/faq_su
– masegaloeh – 2014-05-21T04:35:09.053Tried it, not working or not sure if I'm doing it right. – ADTC – 2014-05-21T05:13:37.487
The FAQ suggested by @masegaloeh is your only option. So if it does not work, you need to share more details with us [error message, WinSCP log, server log, anything]. The best would be if you start a new specific question about your particular problem. – Martin Prikryl – 2014-05-21T06:15:30.980
The first part of the FAQ solution does not work as I believe
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? – ADTC – 2014-05-21T06:24:32.587