Thursday, June 8, 2017

sudo permission on remote server using sftp

when connecting to a remote server using sftp command line , you may face a permission denied when you want to run commands on some folders . but you want to do that command using sudo permission ,So you just need to enter this command :

sftp -s "sudo /usr/lib/openssh/sftp-server" 188.40.xxx.xxx
 

Provided that the username is already has ALL permissions in the sudoers file .Ref

No comments:

Post a Comment