scp命令基本用法
scp 用於傳輸檔案到另外一個伺服器環境,
命令格式:
scp -p port user@serverip:/home/user/filename /home/user/filename
例子:
[root@localhost ~]# pwd
/root
[root@localhost ~]# ls
anaconda-ks.cfg ftpaccount install.log.syslog
backup.tar.gz install.log svn1.4.3
[root@localhost ~]# scp backup.tar.gz root@192.168.1.21:/tmp/
The authenticity of host '192.168.1.21 (192.168.1.21)' can't be established.
RSA key fingerprint is 4d:b4:e1:5b:80:8f:ea:df:0a:eb:dd:30:e7:00:07:90.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.21' (RSA) to the list of known hosts.
root@192.168.1.21's password: << 提示輸入192.168.1.21的SSH密碼
backup.tar.gz 100% 5120KB 1.3MB/s 00:04
[root@localhost ~]#
命令格式:
scp -p port user@serverip:/home/user/filename /home/user/filename
例子:
[root@localhost ~]# pwd
/root
[root@localhost ~]# ls
anaconda-ks.cfg ftpaccount install.log.syslog
backup.tar.gz install.log svn1.4.3
[root@localhost ~]# scp backup.tar.gz root@192.168.1.21:/tmp/
The authenticity of host '192.168.1.21 (192.168.1.21)' can't be established.
RSA key fingerprint is 4d:b4:e1:5b:80:8f:ea:df:0a:eb:dd:30:e7:00:07:90.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.21' (RSA) to the list of known hosts.
root@192.168.1.21's password: << 提示輸入192.168.1.21的SSH密碼
backup.tar.gz 100% 5120KB 1.3MB/s 00:04
[root@localhost ~]#
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29196873/viewspace-1065307/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- scp命令
- linux之cp/scp命令+scp命令詳解Linux
- 常用scp命令
- ssh scp命令
- dig 命令的基本用法(轉)
- Linux下scp的用法Linux
- linux命令---scpLinux
- SCP命令的使用
- Linux scp命令Linux
- 常見命令--SCP
- linux useradd命令的基本用法Linux
- LINUX下RPM命令基本用法Linux
- scp命令使用方法
- Linux SSH & SCP命令Linux
- Linux小技巧scp命令Linux
- Linux scp命令詳述Linux
- Linux命令 --- cp與scpLinux
- Linux scp命令詳解Linux
- Linux下scp命令使用Linux
- 在 Windows 上使用 scp 命令Windows
- Linux的scp命令詳解Linux
- 在 Linux 下使用 scp 命令Linux
- scp傳輸檔案的命令
- Linux scp命令的應用Linux
- linux下scp命令詳解Linux
- 每天一個 Linux 命令(60): scp命令Linux
- Linux cp命令和scp命令使用詳解Linux
- Promise基本用法Promise
- Git基本用法Git
- mongoose基本用法Go
- tcpdump基本用法TCP
- GORM基本用法GoORM
- Docker入門教程:15個Docker基本命令及用法Docker
- hbase基本概念和hbase shell常用命令用法
- Linux遠端拷貝scp命令Linux
- MongoDB的基本用法MongoDB
- webpack的基本用法Web
- rematch的基本用法REM