在 Windows SFTP 中使用 Sudo 来切换用户?

Using Sudo in Windows SFTP to switch user?

我正在尝试使用 PuTTY SFTP 命令在我的服务器上上传文件 shell。 我的队友一直在使用 Mac 而 Linux 是我们的服务器,所以他们有预定义的命令。

我正在 Windows 上工作,需要执行以下操作(这些是 Mac 上用于 SFTP 的 ssh 命令):

# Copy from my laptop to my home directory  /home/username
# Change the permissions on your folder:  
chmod 777 /home/username # this is giving issues

# Change to the "ABC" user: 
sudo su gcnweb # this is not working in windows

cd /path../  # Go to the deployment directories //no issues here

cp /path of the director/ # Copy the files from your home dir to the deployment dir //no issues here

请检查上面是否有人可以使用 PuTTY SFTP 帮助我解决 Windows 中的相同问题。

这些是 shell 命令。它与 SFTP 无关。

如果您使用 Windows SSH 客户端,您可以执行完全相同的命令。就像 PuTTY 本身 (putty.exe).