Can you sudo with winscp




















SimonBlu said:. Osman Tepeustu said:. John Thompson said:. Pingback: Linux system logging introduction for Windows Admins. Atul said:. Great tips. Saved hours of mine and worked like charm. Mukesh said:. You are commenting using your WordPress. You are commenting using your Google account. You are commenting using your Twitter account. You are commenting using your Facebook account. Notify me of new comments via email. Notify me of new posts via email.

So you should restrict it as much as possible. Note that as WinSCP cannot implement terminal emulation, you need to have sudoers option requiretty turned off which is default. Even more restrictive option forced-commands-only may work with SFTP protocol, but it has not been tested. Any way I dont think sudo without password will work :wink:.

Can you please tell me what is the configuration file that I should edit?? Sudoers manual. What I do is another kind of work-around, to avoid sudo-without-password: Make a directory e.

Then you can copy contents from Windows to this folder without sudo. Transferring files to remove systems is rarely done just for the sake of the transfer. Instead, it is usually done so that the files get processed by some service. Find centralized, trusted content and collaborate around the technologies you use most.

Connect and share knowledge within a single location that is structured and easy to search. I'm using private key for my instance to login to Amazon instance using ec2-user.

However ec2-user does not have access to write to the Linux instance. How do I sudo su - to access the root directory and write to the linux box, using WinSCP or any other file transfer method? AWS Ubuntu AFAIK you can't do that. Another solution would be to change permissions of the directories you are planning on uploading the files to, so your user which is without sudo privileges could write to those dirs.

I didn't have enough Reputation points to add a comment to the original answer but I had to fish this out so I wanted to add it.

If you are using password instead of private key, please refer to this answer for tested working solution on Ubuntu Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 5 years, 10 months ago.



0コメント

  • 1000 / 1000