Is there way to switch between user accounts using WinSCP?
When I am using PuTTY, I can use su
command to switch users between different accounts.
For an example:
kitis@localhost$
kitis@localhost$ su abc
abc@localhost$
In the same way, when I am using WinSCP, is there a way for me to switch users while I have logged in to a server?
There is a FAQ for this question on WinSCP site:
How do I change user after login (e.g. su root)?
You need to specify the sudo
command in WinSCP session settings, as custom shell (if you are using SCP) or use sudo
in custom SFTP server startup command (if you are using SFTP).
Though there are some limitations, notably that you need to configure sudo
not to require a password.
See the link for details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With