Pscp使用小结-"more than one remote source not supported"
2011-10-12 11:27
3711 查看
Pscp使用小结
---"more than one remote source not supported"错误提示Linux之间远程拷贝文件常用有3种方法:第一种就是ftp,也就是其中一台Linux安装ftp Server,这样可以另外一台使用ftp的client程序来进行文件的拷贝;第二种方法就是采用samba服务,类似Windows文件复制的方式来操作,比较简洁方便;第三种就是利用scp命令来进行文件拷贝。 个人觉得SCP是最方便快速的,PSCP则是Windows下与Linux远程拷贝文件的工具。
scp就是secure copy,Pscp与scp相同,是用来进行远程文件拷贝的.数据传输使用ssh1,并且和ssh1使用相同的认证方式,提供相同的安全保证.
语法:本地到远程 scp 文件名1 远程用户名@IP地址:文件名2
远程到本地 scp 远程用户名@IP地址:文件名1 文件名2
当然也可以远程对远程拷贝,拷贝过程使用ssh加密,快速又安全。例如将本地d:\test目录下的test.tar文件拷贝到远程主机192.168.5.102的/home/test/目录下,则命令为:pscp d:\test\test.tar root@192.168.5.102:/home/test/ 回车后输入root用户密码就可以了。
-p 拷贝文件的时候保留源文件建立的时间。
-q 执行文件拷贝时,不显示任何提示消息。
-r 拷贝整个目录
-v 拷贝文件时,显示提示信息。
Usage:
pscp [options] [user@]host:source target
pscp [options] source [source...] [user@]host
pscp [options] -ls user@host:filespec
用法:
pscp [选项] [用户名@]主机:源文件 目标文件
pscp [选项] 源文件 [源文件……] [用户名@]主机
pscp [选项] -ls 用户名@主机:文件空间?
Options:
选项:
-p preserve file attributes 保护文件属性
-q quiet, don't show statistics 安静,不显示统计
-r copy directories recursively 复制子文件夹
-V print version information and exit 显示信息
-v show verbose messages
-load sessname Load settings from saved session
-load 加载,加载保存节的设定
-P port connect to specified port
-P 端口,连接到指定空间端口
-l user connect with specified username
-l 用户,用指定的用户连接空间
-pw passw login with specified password
-pw 密码,用指定的密码登录空间
-1/-2 强迫 ssh 使用的版本
-4 -6 force use of IPv4 or IPv6
-C 打开压缩
-i key 钥匙,证明用的钥匙文件
-batch 关闭交互能力,也许
-unsafe 不安全,允许伺服端取代字符 (危险的)
初学过程中,有如下命令如下:
C:\> pscp d:\test\test.txt root@192.168.100.188 :/home/testMore than one remote source not supported
总是显示“more than one remote source not supported”的错误提示,后来检查发现是由于远程host主机与后面:/filespec之间存在空格导致。
正确命令如下:
C:\> pscp d:\test\test.txt root@192.168.100.188:/home/test
本文出自 “linux@stu” 博客,请务必保留此出处http://iptables.blog.51cto.com/3029632/685967
相关文章推荐
- 关于clover2运行时出现的"annotations are not supported in -source 1.3"错误的解决
- 在Sun Solaris JRE/JDK 环境下使用 DB2 JCC驱动程序时碰到"Encoding not supported"错误怎么办
- framework中使用了 CateGory 的时候,调用app出现 "selector not recognized"解决方法
- 安装Cocoapods 使用pod指定提示 "pod: command not found"
- C++ 使用vector 出现"vector iterator not incrementable"或"vector iterator + offset out of range"错误的情况
- iOS iOS8中 问题"registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later" 解决方案
- "source:not found" in Ubuntu10.10
- 在linux上使用"scp"命令拷贝一个目录到另一台服务器的时候报"not a regular file"错误的解决办法
- 解决使用tomcat6-maven-plugin时的"can not invoke tomcat manager"问题
- iOS iOS8中 问题"registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later" 解决方式
- "monitor" command not supported by this target.
- Visual Studio使用"go to definition"出现"A definition for the symbol '<symbolName>' could not be located
- elasticsearch6.x {"error":"Content-Type header [application/x-www-form-urlencoded] is not supported"
- 解决phpcms使用php7.1.9时修改后台菜单错误 "[] operator not supported for strings"错误提示
- 【iOS开发】使用扩展方法时出现"selector not recognized" runtime exceptions的解决方案
- 记录解决eclipse的"Resource specification not allowed here for source level below 1.7"问题
- 使用solcjs命令生成abi和bin文件出现"ParserError:Source "G:/XXX/strings.sol" not found:File not supplied initally
- 使用Openjdk7编译android源码出现"Could not initialize NSS"错误的解决办法
- 启动MyEclipse出现"Source not found for JdbcOdbcDriver.finalize() line: not available"解决
- iOS iOS8中 问题"registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later" 解决方案