当前位置:网站首页>PSCP 基本使用
PSCP 基本使用
2022-04-23 11:31:00 【FMsunyh】
PSCP 基本使用
问题:
如何免密码输入,传送数据
“sshpass is not recognized” on Windows"
PSCP:是Putty的文件传输工具,用于两台电脑之间的文件传输
重点:可以在命令中添加密码, 不像SCP需要单独输入密码
下载putty工具
putty工具
操作1:
从本地传输文件到服务器(window to linux)
PSCP -pw 12345678 C:\Users\Firmi\Desktop\test.txt [email protected]:/root/
操作2:
从服务器下载文件(linux to window)
PSCP -pw 12345678 [email protected]:/root/test.txt C:\Users\Firmi\Desktop\
参数
pscp语法基本与scp相同,但也有一下几个注意点:
-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 不安全,允许伺服端取代字符 (危险的)
参考
版权声明
本文为[FMsunyh]所创,转载请带上原文链接,感谢
https://blog.csdn.net/u010006102/article/details/124342349
边栏推荐
- RebbitMQ的初步了解
- 汇编语言 运行环境设置等教程链接整理
- Significance of actively participating in middle school robot competition
- map<QString, bool> 的使用记录
- Nacos Basics (5): getting started with Nacos configuration
- Learning go language 0x02: understanding slice
- 论坛系统数据库设计
- 少儿编程结构的改变之路
- 微型机器人的认知和研发技术
- Detailed explanation of writing sequence and execution sequence of MySQL series SQL query statements
猜你喜欢
MIT: label every pixel in the world with unsupervised! Humans: no more 800 hours for an hour of video
怎么进行固定资产盘点,资产盘点报告如何一键生成
R-Drop:更强大的Dropout正则方法
Interprocess communication -- message queue
PDMS软光刻加工过程
分享两个实用的shell脚本
实践数据湖iceberg 第三十课 mysql->iceberg,不同客户端有时区问题
少儿编程结构的改变之路
qt5. 8. You want to use SQLite in the 64 bit static library, but the static library has no method to compile the supporting library
Nacos Foundation (7): Configuration Management
随机推荐
nacos基础(5):nacos配置入门
Simple construction of rebbitmq
Database design of simple voting system
Exploring the equipment and teaching of robot education
MySQL failed to insert the datetime type field without single quotation marks
博客文章导航(实时更新)
Yunna | fixed assets inventory supports multiple inventory methods (asset inventory)
Understanding of fileprovider path configuration strategy
RebbitMQ的初步了解
Write console script by laravel
Learn go language 0x06: Fibonacci closure exercise code in go language journey
卷积层和池化层总结
Resolution due to AMD not found_ ags_ x64. DLL, unable to continue code execution. Reinstallation of the program may solve this problem, Forza horizon 5
Nacos Foundation (8): login management
Blog post navigation (real-time update)
进程间通信 -- 消息队列
After the MySQL router is reinstalled, it reconnects to the cluster for boot - a problem that has been configured in this host before
用curl库压缩成发送字符串为utf8并用curl库发送
Learning go language 0x01: start from the official website
怎么进行固定资产盘点,资产盘点报告如何一键生成