Linux command
pscp 命令
文件
Copy it and replace filenames, paths, or keywords as needed.
命令示例
Copy file to remote
pscp [file] [user]@[host]:[path]
Copy from remote
pscp [user]@[host]:[file] [local_path]
Copy directory recursively
pscp -r [directory] [user]@[host]:[path]
Use specific key
pscp -i [key.ppk] [file] [user]@[host]:[path]
Specify port
pscp -P [2222] [file] [user]@[host]:[path]
说明
pscp is PuTTY's SCP (Secure Copy) client for Windows. It transfers files over SSH, similar to the Unix scp command but using PuTTY's connection code.
参数
- -r
- Copy directories recursively.
- -i _key_
- Private key file (PPK format).
- -P _port_
- SSH port.
- -l _user_
- Login username.
- -pw _password_
- Password (insecure).
- -q
- Quiet mode.
- -v
- Verbose mode.
FAQ
What is the pscp command used for?
pscp is PuTTY's SCP (Secure Copy) client for Windows. It transfers files over SSH, similar to the Unix scp command but using PuTTY's connection code.
How do I run a basic pscp example?
Run `pscp [file] [user]@[host]:[path]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -r do in pscp?
Copy directories recursively.