SCP命名使用
来源:互联网 发布:复杂疾病的大数据挖掘 编辑:程序博客网 时间:2024/05/21 16:55
SCP uses Secure Shell (SSH) to transfer data between client and remote server, it’s fast and secure. In this article, we will show you two common SCP copying examples :
Copying data from your computer to remote server.
Copying data from remote server to your computer.
1. Copying data to Remote Server
Example 1.1 – Copying a file.
Example 2.1 – Copying a file.
Copying data from your computer to remote server.
Copying data from remote server to your computer.
1. Copying data to Remote Server
Example 1.1 – Copying a file.
scp SourceFile user@server:directory/TargetFileCopy a file “gae.log” from local computer to remote server(thejtechs.com), ‘/home/thejtechs/‘ folder, via username “thejtechs“.
$ scp gae.log thejtechs@thejtechs.com:/home/thejtechs/Password:stdin: is not a ttygae.log 100% 4193 4.1KB/s 00:00Example 1.2 – Copying a folder, and all its content.
scp -r SourceFolder user@server:directory/TargetFolderCopy a folder “tutorials” from local computer to server(thejtechs.com), ‘/home/thejtechs/‘ folder, via username “thejtechs“.
$ scp -r tutorials thejtechs@thejtechs.com:/home/thejtechs/Password:stdin: is not a ttyaweber.txt 100% 2895 2.8KB/s 00:01codetraining.txt 100% 330 0.3KB/s 00:00contact.txt 100% 146 0.1KB/s 00:00eclipse.txt 100% 5719 5.6KB/s 00:002. Copying data from Remote Server
Example 2.1 – Copying a file.
scp user@server:directory/SourceFile TargetFileCopy a file “/home/thejtechs/modsec_audit.log” from remote server(thejtechs.com), to local, current folder (“.“), via username “root“.
$ scp root@thejtechs.com:/home/thejtechs/modsec_audit.log .Password:stdin: is not a ttymodsec_audit.log 100% 244KB 122.1KB/s 00:02Example 2.2 – Copying a folder, and all its content.
scp -r user@server:directory/SourceFolder TargetFolderCopy a folder “/home/thejtechs/mail” from remote server(thejtechs.com), to local, current folder (“.“), via username “thejtechs“.
Yongs-MacBook-Air:~ thejtechs$ scp -r thejtechs@thejtechs.com:/home/thejtechs/mail .Password:stdin: is not a ttycourierimapuiddb 100% 15 0.0KB/s 00:00courierpop3dsizelist 100% 88 0.1KB/s 00:01courierimapacl 100% 43 0.0KB/s 00:00maildirsize 100% 348 0.3KB/s 00:00SSH PortIf your server uses a SSH port other than the default of 22, use -P portnumber option.scp -P 2222 user@host:directory/SourceFile TargetFile
- SCP命名使用
- scp使用
- scp 使用
- scp 使用
- scp 使用
- scp使用
- scp使用
- scp 使用
- scp使用
- SCP 的使用
- linux scp ftp使用
- SCP 命令的使用
- Linux scp 使用
- Linux scp 使用详解
- scp的使用
- Linux scp 使用详解
- Linux scp 使用详解
- Linux scp 使用详解
- 为什么上传服务器就报错??
- 深入理解iputils网络工具-第5篇 arping:地址解析程序
- C#鼠标按住标题移动时移动窗体
- 图片-flash弹出特效
- 线性筛法的应用
- SCP命名使用
- USB驱动开发(3)--配置USB I/O目标
- 二维数组的传递方式
- 10 jQuery Custom Scrollbar Plugins 滚动条特效
- SimpleXMLElement类对象的实例化
- 16进制颜色(html颜色值)字符串转为UIColor
- VC6中使用CHtmlView在对话框控制中显示HTML文件
- RedHat 4 安装 Oracle 10g
- C++的一些深入理解