Switching users using WinSCP between different accounts

后端 未结 2 1086
隐瞒了意图╮
隐瞒了意图╮ 2021-01-13 11:16

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.

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-13 11:32

    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.

提交回复
热议问题