当前位置:网站首页>PSCP basic usage
PSCP basic usage
2022-04-23 11:48:00 【FMsunyh】
PSCP Basic use
problem :
How to avoid password input , Transmit data
“sshpass is not recognized” on Windows"
PSCP: yes Putty The file transfer tool , Used for file transfer between two computers
a key : You can add a password to the command , Unlike SCP You need to enter the password separately
download putty Tools
putty Tools
operation 1:
Transfer files locally to the server (window to linux)
PSCP -pw 12345678 C:\Users\Firmi\Desktop\test.txt [email protected]:/root/
operation 2:
Download files from the server (linux to window)
PSCP -pw 12345678 [email protected]:/root/test.txt C:\Users\Firmi\Desktop\
Parameters
pscp Grammar basic and scp identical , But there are also a few points :
-p When copying files, keep the time when the source file was created .
-q When copying files , Do not display any prompt messages .
-r Copy the entire directory
-v When copying files , Display prompt message .
Usage:
pscp [options] [user@]host:source target
pscp [options] source [source...] [user@]host
pscp [options] -ls user@host:filespec
usage :
pscp [ Options ] [ user name @] host : Source file Target file
pscp [ Options ] Source file [ Source file ……] [ user name @] host
pscp [ Options ] -ls user name @ host : File space ?
Options:
Options :
-p preserve file attributes Protect file properties
-q quiet, don't show statistics quiet , Do not display statistics
-r copy directories recursively Copy subfolders
-V print version information and exit display information
-v show verbose messages
-load sessname Load settings from saved session
-load load , Load and save section settings
-P port connect to specified port
-P port , Connect to the specified space port
-l user connect with specified username
-l user , Use the specified user connection space
-pw passw login with specified password
-pw password , Log in to the space with the specified password
-1/-2 Force ssh Version used
-4 -6 force use of IPv4 or IPv6
-C Turn on compression
-i key The key , Key document for certification
-batch Turn off interaction , Maybe
-unsafe unsafe , Allow the servo end to replace the character ( dangerous )
Reference resources
版权声明
本文为[FMsunyh]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231130558860.html
边栏推荐
- WIN10 启动后花屏
- 配电房远程综合监控系统在10kV预制舱项目中的应用
- 分享两个实用的shell脚本
- Significance of actively participating in middle school robot competition
- 5个免费音频素材网站,建议收藏
- Golang Pen & interview 01
- Database design of simple voting system
- 第四章 为IM 启用填充对象之启用和禁用列(IM-4.3 第三部分)
- Castle.DynamicProxy实现事务单元控制
- The fourth chapter is the enable and disable columns of IM enabled fill objects (Part III of im-4.3)
猜你喜欢
随机推荐
IM表达式如何工作(5.3)
激活函数之relu函数
Advanced file IO of system programming (13) -- IO multiplexing - Select
汇编语言 运行环境设置等教程链接整理
运行报错:找不到或无法加载主类 com.xxx.Application
IFLYTEK's revenue in 2021 was 18.3 billion yuan: a year-on-year increase of 41% and a net profit of 1.556 billion yuan
The way to change children's programming structure
laravel 永远返回 JSON 响应
golang之筆試題&面試題01
解析社交性机器人对基础科学的作用
第四章 为IM 启用填充对象之强制填充In-Memory对象:教程(IM 4.7)
积极参与中学机器人竞赛的意义
第五章 使用In-Memory表达式优化查询(IM 5.1)
ImportError: libX11. so. 6: cannot open shared object file: No such file or directory
让中小学生在快乐中学习的创客教育
Nacos Foundation (9): Nacos configuration management from single architecture to microservices
微型机器人的认知和研发技术
Use kettle to copy records to and get records from results
Cognition and R & D technology of micro robot
How does QT turn qwigdet into qdialog