sudo scp

相關問題 & 資訊整理

sudo scp

我在服务器A上有一个文件(它位于NAT后面,因此无法直接寻址)。需要将文件复制到限制为root的目录中的服务器B.我在服务器B上有一个具有sudo ..., 在linux下一般用scp这个命令来通过ssh传输文件。 1、从服务器上下载文件 scp username@servername:/path/filename /var/www/local_dir(本地 ..., 在使用scp 指令之前先在本地端以及遠端安裝對應的套件方可運作,畢竟scp 是靠ssh 在運作的。 1.1. ... sudo apt-get install openssh-server [Enter] ...,ssh user@remote "sudo scp -r user@local:/path/to/files /opt/bin". It seems like that is a whole lot of privilege with nary a password to be seen, which would make ... ,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 ssh serverb sudo mv ... , 你是对的,在与 scp 合作时没有 sudo 。一种解决方法是使用 scp 上传文件到您的用户有权限创建文件的目录,然后通过ssh登录和使用 sudo ..., 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 ...,after I sudo -i or sudo su - I try to scp and it wants roots password. I know that sudoing in those manners basically make me the root 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.,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' ...

相關軟體 WinSCP 資訊

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

sudo scp 相關參考資料
scp到sudo的远程服务器- 智库101 - 一个基于CC版权的问答 ...

我在服务器A上有一个文件(它位于NAT后面,因此无法直接寻址)。需要将文件复制到限制为root的目录中的服务器B.我在服务器B上有一个具有sudo ...

http://www.kbase101.com

Linux SCP 命令: 利用SSH传输文件- sudo!! - 博客园

在linux下一般用scp这个命令来通过ssh传输文件。 1、从服务器上下载文件 scp username@servername:/path/filename /var/www/local_dir(本地 ...

https://www.cnblogs.com

scp - 藉由ssh 的遠端檔案傳輸指令| 凍仁的筆記

在使用scp 指令之前先在本地端以及遠端安裝對應的套件方可運作,畢竟scp 是靠ssh 在運作的。 1.1. ... sudo apt-get install openssh-server [Enter] ...

http://note.drx.tw

How to scp file to remote servers' root directory and run sudo ...

ssh user@remote "sudo scp -r user@local:/path/to/files /opt/bin". It seems like that is a whole lot of privilege with nary a password to be seen, which would make ...

https://serverfault.com

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 ssh serverb sudo mv ...

https://superuser.com

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

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

https://ubuntuqa.com

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 ...

https://askubuntu.com

scp after sudo - Linux Forum - Spiceworks Community

after I sudo -i or sudo su - I try to scp and it wants roots password. I know that sudoing in those manners basically make me the root user.

https://community.spiceworks.c

How to copy a folder from remote using remote user with sudo ...

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

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