Opened 5 years ago
Closed 5 years ago
#12073 closed Feature request (rejected)
Add SFTP protocol option to use sudo on login
Reported by: | Reto4 | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | FileZilla Client |
Keywords: | Cc: | ||
Component version: | Operating system type: | ||
Operating system version: |
Description
Sorry to say, but this is kind of a killer feature of WinSCP. On the other hand, it only understands putty private keys...
- https://stackoverflow.com/questions/6414158/winscp-connect-to-amazon-ami-ec2-instance-changing-user-after-login-to-root
- https://stackoverflow.com/questions/34798936/how-to-run-sudo-command-in-winscp-to-transfer-files-from-windows-to-linux
- https://winscp.net/eng/docs/faq_su
- https://unix.stackexchange.com/questions/111026/how-to-use-sftp-on-a-system-that-requires-sudo-for-root-access-ssh-key-based-a
Change History (2)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
Resolution: | → rejected |
---|---|
Status: | new → closed |
sudo is not part of the SFTP specifications.
sudo is an undefined, system-specific command on interactive shells that isn't portable.
Note:
See TracTickets
for help on using tickets.
I also need this feature extremely.
This is sad, but currently, I have to give up FileZilla in favor of WinSCP, because I need to execute command like "sudo -u tools.PROJECT-NAME /usr/lib/sftp-server" right after logging in (authorisation under tool account). If I don't do that, I'm authorized under my private account and cannot access some of the files, and also new files will have wrong permissions.
See https://wikitech.wikimedia.org/wiki/Help:Access_to_Toolforge_instances_with_PuTTY_and_WinSCP
This is standard way to work in Labs/Toolforge projects (Toolforge - public tools hosting of Wikipedia/Wikimedia projects).