scp sudo

相關問題 & 資訊整理

scp sudo

First, you need to copy the file to a place where you have write access without sudo, scp yourfile serverb: Then move the file using sudo,Apparently, this is not supported by SFTP, so I am using SCP instead. I am creating a SSH session, logging in, executing my 'sudo su USER' ... , Ensure which user has to use sudo - local or remote (or both) users? i.e. sudo scp affects only local user rights to performing scp command., First... maybe this is not a good idea. It may be that the permissions are set this way to stop people from doing exactly what you are trying to do ...,sudo chmod 777 /home 不過不建議,會有安全漏洞 變通的辦法,是先scp 拷貝到遠端/tmp /tmp 一定可以寫入在ssh 到遠端,mv 移動檔案到想要的 ... ,You're right, there is no sudo when working with scp . A workaround is to use scp to upload files to a directory where your user has permissions to create files, ... , Simple answer: you can't do that directly. Extended answer: Use SCP to transfer the file to a directory where you have write access with that ..., 你是对的,在与 scp 合作时没有 sudo 。一种解决方法是使用 scp 上传文件到您的用户有权限创建文件的目录,然后通过ssh登录和使用 sudo ...

相關軟體 WinSCP 資訊

WinSCP
WinSCP 是一個開源免費的 SFTP 客戶端,FTP 客戶端,WebDAV 客戶端和 Windows 客戶端。它的主要功能是在本地和遠程計算機之間進行文件傳輸。除此之外,WinSCP 提供腳本和基本的文件管理器功能.WinSCP 功能:圖形用戶界面(GUI)翻譯成多種語言與 Windows 集成(拖放,URL,快捷方式圖標)U3 支持所有文件的常用操作支持 SFTP 和 SCP 協議通過 SS... WinSCP 軟體介紹

scp sudo 相關參考資料
command line - scp to remote server with sudo - Super User

First, you need to copy the file to a place where you have write access without sudo, scp yourfile serverb: Then move the file using sudo

https://superuser.com

How to scp with sudo? - Rebex Q&A Forum

Apparently, this is not supported by SFTP, so I am using SCP instead. I am creating a SSH session, logging in, executing my 'sudo su USER' ...

http://forum.rebex.net

linux - How to copy a folder from remote using remote user with ...

Ensure which user has to use sudo - local or remote (or both) users? i.e. sudo scp affects only local user rights to performing scp command.

https://unix.stackexchange.com

linux - scp to location on remote that requires sudo gives ...

First... maybe this is not a good idea. It may be that the permissions are set this way to stop people from doing exactly what you are trying to do ...

https://superuser.com

scp 总是显示Permission denied [論壇- 新手村] | Ubuntu 正體中文站

sudo chmod 777 /home 不過不建議,會有安全漏洞 變通的辦法,是先scp 拷貝到遠端/tmp /tmp 一定可以寫入在ssh 到遠端,mv 移動檔案到想要的 ...

https://www.ubuntu-tw.org

server - How do I copy files that need root access with scp? - Ask ...

You're right, there is no sudo when working with scp . A workaround is to use scp to upload files to a directory where your user has permissions to create files, ...

https://askubuntu.com

windows - Sudo with scp - transfering local file to remote server ...

Simple answer: you can't do that directly. Extended answer: Use SCP to transfer the file to a directory where you have write access with that ...

https://superuser.com

如何将需要root权限的文件复制到scp? - Ubuntu问答

你是对的,在与 scp 合作时没有 sudo 。一种解决方法是使用 scp 上传文件到您的用户有权限创建文件的目录,然后通过ssh登录和使用 sudo ...

https://ubuntuqa.com