WindTerm icon indicating copy to clipboard operation
WindTerm copied to clipboard

sftp support sudo login like winscp to copy files

Open fastfading opened this issue 2 years ago • 1 comments

sftp support sudo login like winscp to copy files reference this https://winscp.net/eng/docs/faq_su

right now it can only support login user permission copy.

for most server , you need to do sudo su to access other folder

winscp give a example how to do this

winscp可以拷贝 任意目录, 实现原理如上面链接。 希望有同样的功能

fastfading avatar Jun 24 '22 05:06 fastfading

#以下命令检查 SFTP 服务器二进制文件位置 cat /etc/ssh/sshd_config |grep -i sftp-server #Note that SFTP server binary may be located elsewhere2 #(e.g. in /bin/sftp-server, /usr/lib/sftp-server, /usr/lib/openssh/sftp-server or /usr/libexec/openssh/sftp-server).

#connect sftp with sudo sftp -s "sudo /usr/libexec/openssh/sftp-server" targethost

fastfading avatar Jul 15 '22 08:07 fastfading