You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to use SFTP command options? The idea is to be able to elevate privileges on the remote host, specially when root SSH/SFTP is not allowed but the user can use "sudo". A typical SFTP command would be:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is it possible to use SFTP command options? The idea is to be able to elevate privileges on the remote host, specially when root SSH/SFTP is not allowed but the user can use "sudo". A typical SFTP command would be:
sftp -s 'sudo /usr/libexec/openssh/sftp-server' <target_host>
It work from the command with key based authentication.
I would not mind creating a wrapper script, but I found not way to specify the SFTP command to use...
Beta Was this translation helpful? Give feedback.
All reactions