当前位置:网站首页>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
边栏推荐
- Solve the problem of "suncertpathbuilderexception: unable to find valid certification path to requested target"
- Mysql database transaction example tutorial
- C#的学习笔记【八】SQL【一】
- Usage record of map < qstring, bool >
- 进程间通信 -- 消息队列
- kettle复制记录到结果和从结果获取记录使用
- Learn go language 0x05: the exercise code of map in go language journey
- ES6 learning notes II
- Nacos Foundation (9): Nacos configuration management from single architecture to microservices
- PDMS soft lithography process
猜你喜欢
Tensorflow uses keras to create neural networks
R-Drop:更强大的Dropout正则方法
redis优化系列(二)Redis主从原理、主从常用配置
RebbitMQ的初步了解
Résumé de la relation entre GPU, cuda et cudnn
年度最尴尬的社死瞬间,是Siri给的
PDMS软光刻加工过程
简易投票系统数据库设计
[web daily practice] eight color puzzle (float)
解决由于找不到amd_ags_x64.dll,无法继续执行代码。重新安装程序可能会解决此问题,地平线(Forza Horizon 5)
随机推荐
[web daily practice] eight color puzzle (float)
Compress the curl library into a sending string of utf8 and send it with curl library
R-drop: a more powerful dropout regularization method
分享两个实用的shell脚本
Solve the problem of "suncertpathbuilderexception: unable to find valid certification path to requested target"
Share two practical shell scripts
QT 64 bit static version display gif
Detailed introduction to paging exploration of MySQL index optimization
Database design of simple voting system
分享两个实用的shell脚本
Redis学习之五---高并发分布式锁实战
rebbitMQ的简单搭建
Interpreting the art created by robots
博客文章导航(实时更新)
小程序 支付
How does QT turn qwigdet into qdialog
Overall plan management mode in maker Education
Learn go language 0x04: Code of exercises sliced in go language journey
积极参与中学机器人竞赛的意义
系统编程之高级文件IO(十三)——IO多路复用-select