linux sftp 和scp 运用
Linux scp命令:
Upload to remote :复制本地文件到远程
Part1:
Scp -P port local_file remote_user@remote_ip:remote_file
SCP -P port -r local_dir remote_user@remote_ip:remote_dir # local_dir must exist ,else will occur error
Part2:
Dowmload from remote 复制远程文件到本地
Scp -P port remoet_user@remote_ip:remote_file local_file
Scp -P port -r remote_user @remote_ip:remote_dir local_dir # localdir must exist
Sftp :
Part1:
Sftp remote_user@remote_ip
>> pwd:
>> ls -l remote_dir
>>lls -l
# get file from remote 远程获取文件
>> get remote_file local_file #localfile if exists in local linux will cover it by remote same name file
Eg:
sftp> get /usr/local/test002/2.txt /usr/local/test01/1.txt
Fetching /usr/local/test002/2.txt to /usr/local/test01/1.txt
/usr/local/test002/2.txt 100% 5 5.2KB/s 00:00
sftp> exit
Part2:
>> put local file from local 从本地上传到远程文件
>> put local_file remote_file 上传文件如果远程已存在会直接覆盖掉远程同名文件
Eg:
sftp> put /usr/local/test01/1.txt /usr/local/test002/2.txt
Uploading /usr/local/test01/1.txt to /usr/local/test002/2.txt
/usr/local/test01/1.txt 100% 5 6.3KB/s 00:00
linux sftp 和scp 运用的更多相关文章
- linux 的 sftp 和 scp
====================================== 作者: wxy0327(http://wxy0327.itpub.net) 发表于: 2006.12.07 13:19 分 ...
- linux - sftp, scp, rz, sz(文件传输命令)
1. sftp Secure Ftp 是一个基于SSH安全协议的文件传输管理工具.由于它是基于SSH的,会在传输过程中对用户的密码.数据等敏感信息进行加密,因此可以有效的防止用户信息在传输的过程中被窃 ...
- Telnet、FTP、SSH、SFTP、SCP
[Telnet]著名的终端访问协议,传统的网络服务程序,如FTP.POP和Telnet,其本质上都是不安全的:因为它们在网络上用明文传送数据.用户帐号和用户口令. [telnet命令]telnet h ...
- Linux 命令之 scp 命令详解
Linux 命令之 scp 命令详解 一.scp 简介 scp 命令用于不同主机之间复制文件和目录. scp 是 secure copy 的缩写,是 基于 ssh 协议进行安全的远程文件拷贝命令. s ...
- linux cp 和scp详解
linux之cp/scp命令+scp命令详解 名称:cp 使用权限:所有使用者 使用方式: cp [options] source dest cp [options] source... dire ...
- 【转】linux之cp/scp命令+scp命令详解
linux之cp/scp命令+scp命令详解 名称:cp 使用权限:所有使用者 使用方式: cp [options] source dest cp [options] source... dire ...
- linux 上传scp 压缩tar命令
1.Linux 上传scp 1)上传文件与文件夹 scp file weblogic@xx.xxx.xxx.xxx:~/songjd/ scp -r filefolder weblogic@xxx.x ...
- linux下用scp命令在两个服务器之间传输文件,利用php_scp函数进行文件传输
在linux下利用scp进行文件传输, 从服务器下载文件 scp username@servername:/path/filename /path/filename 上传本地文件到服务器 scp /p ...
- 在 Linux 下使用 scp 命令
将文件或文件夹从网络上的一个主机拷贝到另一个主机当中去. here:在 Linux 下使用 scp 命令 摘要: scp 是安全拷贝协议(Secure Copy Protocol)的缩写, scp 是 ...
随机推荐
- SpringMVC处理中文乱码
SpringMVC自带过滤器 添加至web.xml文件 <filter> <filter-name>encoding</filter-name> <filte ...
- 微信小程序块导航
1.wxml页面 <!--index.wxml--> <swiper current="{{currentTab}}" class="swiper-bo ...
- Keep-Alive 以及服务器心跳
Keep-Alive 来源 :http://www.nowamagic.net/academy/detail/23350305 服务器心跳 来源 :http://www.cnblogs.com/lw ...
- php设计模式之策略模式实例代码
html <html> <head> <meta charset="UTF-8"> <title>简单计算器</title&g ...
- New Skateboard
Max wants to buy a new skateboard. He has calculated the amount of money that is needed to buy a new ...
- 怎么编写API和或者自己不属于知识小案例demo程序
再使用一个函数,进行测试的调用,然后进行调用这样就不需要再为makefile什么,还有就是改什么鬼东西烦恼了. 然后把需要的功能进行分解就行了.
- oracle sqlplus链接和sid
1.链接 ( 1.sqlplus /nolog 2.conn sys/sys@172.16.17.36/orcl as sysdba ) 2.sid 数据库名称 ----如:orcl 1.监听程序 ...
- JAVA 注解教程(五)注解的提取
注解与反射 注解通过反射获取.首先可以通过 Class 对象的 isAnnotationPresent() 方法判断它是否应用了某个注解 public boolean isAnnotationPres ...
- Linux 配置mysql 远程连接
1.首先用root用户登录mysql mysql -u root -p 2.新建用户 use mysql; select host,user from user;(查看现有用户) CREATE USE ...
- 联想小新潮怎么修改fn热键以及怎么进入bios状态
联想小新潮怎么修改fn热键 http://www.ylmfwin100.com/ylmfnew/11129.html 怎么进入bios状态 https://zhidao.baidu.com/que ...