Answer the question
In order to leave comments, you need to log in
How to use sudo in sftp?
I created a user on the server, added it to sudoers, I connect via ssh and I can open/edit files that I don't have rights to using sudo.
But having connected under the same user via sftp to filezilla, I can no longer open or view the file I need if there are no rights to it. Is it possible to use sudo over sftp?
Answer the question
In order to leave comments, you need to log in
I do not use Filezilla, but I think the solution is similar.
winscp:
Environment -> SFTP -> SFTP server -> sudo -u user /usr/lib/openssh/sftp-server
Far Manager with WinSCP plugin:
SFTP -> SFTP server -> sudo -u user /usr/lib/openssh/ sftp-server
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question