当前位置:网站首页>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
边栏推荐
- MIT: label every pixel in the world with unsupervised! Humans: no more 800 hours for an hour of video
- MySQL interview questions explain how to set hash index
- Nacos Foundation (6): Nacos configuration management model
- Laravel admin form validation
- Interpretation of 2022 robot education industry analysis report
- Understanding of MQ
- Summary of the relationship among GPU, CUDA and cudnn
- golang之笔试题&面试题01
- Laravel always returns JSON response
- 博客文章导航(实时更新)
猜你喜欢
积极参与中学机器人竞赛的意义
Analyze the rules for the use of robots with good performance
nacos基础(5):nacos配置入门
nacos基础(9):nacos配置管理之从单体架构到微服务
创客教育中的统筹方案管理模式
云呐|如何管理好公司的固定资产,固定资产管理怎么做
简易投票系统数据库设计
PDMS软光刻加工过程
Nacos Foundation (9): Nacos configuration management from single architecture to microservices
Yunna | fixed assets inventory supports multiple inventory methods (asset inventory)
随机推荐
laravel-admin时间范围选择器dateRange默认值问题
Learn go language 0x07: stringer exercise code in go language journey
Yunna | how to manage the company's fixed assets and how to manage fixed assets
Explain in detail the pitfalls encountered in DTS due to the time zone problems of timestamp and datetime in MySQL
MySQL partition table can be classified by month
RebbitMQ的初步了解
Design and practice of the smallest short website system in the whole network
Implementation of inserting millions of data into MySQL database in 10 seconds
Advanced file IO of system programming (13) -- IO multiplexing - Select
AcWing 1874. Moo encryption (enumeration, hash)
Interprocess communication -- message queue
Significance of actively participating in middle school robot competition
Application of remote integrated monitoring system in power distribution room in 10kV prefabricated cabin project
PDMS soft lithography process
redis优化系列(二)Redis主从原理、主从常用配置
MySQL sorting feature details
用curl库压缩成发送字符串为utf8并用curl库发送
Docker MySQL master-slave backup
Nacos Foundation (7): Configuration Management
Detailed explanation of integer data type tinyint in MySQL