Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ pscp use Detailed Windows and Linux each file transfer tool     - Ubuntu 14.04 / Linux Mint 17 How to install the MintMenu 5.5.2 menu (Linux)

- Golang use Oracle database on Ubuntu 14.04 (Linux)

- Linux server is how to do after the invasion (Linux)

- PPA on Ubuntu Linux installation Plank 0.8.0 (Linux)

- Three methods easy data encryption on Linux (Linux)

- Spark parquet merge metadata problem (Server)

- Linux Getting Started tutorial: hard disk partition and to deal with traps (Linux)

- Cryptography development environment to build under Ubuntu (Linux)

- Usage sed some of the parameters (Linux)

- How to fix apt-get update can not add a new CD-ROM error (Linux)

- To setup NOTRACK and TRACK of conntrack in iptables (Linux)

- How to install Perl modules from CPAN (Linux)

- Linux command line ten magic usage (Linux)

- Oracle GoldenGate Installation and Configuration Tutorial Introduction (Database)

- Linux simple commands (Linux)

- Git and GitHub use of Eclipse and Android Studio (Programming)

- Debugging with GDB tool Go (Programming)

- Availability Hadoop platform - Oozie Workflow (Server)

- GAMIT learning materials finishing (Linux)

- Automate deployment of Docker-based Rails applications (Server)

  pscp use Detailed Windows and Linux each file transfer tool
  Add Date : 2017-08-31      
  Detailed pscp use:
pscp putty installation package is carried by the remote file transfer tool, is a very common between windows and linux system each file transfer tool for use with the linux scp similar, here are some details to use.

PSCP Download version: Release 0.60

pscp [options] [user @] host: source target
pscp [options] source [source ...] [user @] host
pscp [options] -ls user @ host: filespec

Common options:
-l: with the specified user connections
-p: Keep source file transfer properties
-P: Specify the connection port (default 22)
-pw: specify the login user's password (shown)
-q: transmission does not display any warning message
-r: recursive copy the entire directory
-v: displays the prompt message transmission
-V: Print version information and exit

other options:
-1 / -2: Force the use of specified ssh version
-4 / -6: Mandatory use IPv4 or IPv6
-agent: Use Pageant
-noagent: do not use Pageant
-batch: disable all interactive prompts
-C: Use of compressed
-i: Specifies the private key file required for certification
-load: Load a saved session settings
-pgpfp: Print PGP key fingerprint and exit
-scp: mandatory use SCP protocol
-sftp: mandatory use SFTP protocol
-unsafe: Allow server-side wildcard (dangerous)


Start -> Run -> cmd, in the DOS command environment, pscp.exe switch to the directory, and then call

It recommended that pscp.exe into C: \ WINDOWS \ system32, and then you can call anywhere

Note: pscp uses the Windows login user name, and therefore need to specify the Linux username.

Common scenes
Copy a local file to a remote server
Copy a local directory and files in the directory to a remote server
Copy remote files to the local server
Copy remote server directories and files in the directory to the local

1. Copy the local file to the remote server
Format: pscp local_file user @ ip: / remote_dir

Use dodo user linuxidc.txt files uploaded to the D drive under the IP address of linux host / linuxidc / directory
pscp -l dodo D: \ linuxidc.txt
pscp D: \ linuxidc.txt dodo@ / linuxidc

Note: <1> the same effect as the above two statements
      <2> "- l dodo" before the file you want to

2, the local directory and copy the files in the directory to a remote server

Format: pscp local_dir user @ ip: / remote_dir

By using the dodo user hello directory D drive under upload IP address of linux host / linuxidc / directory
pscp -r D: \ hello dodo@ / linuxidc

3. Copy the files from the remote server to the local
Format: pscp user @ ip: / file \ local_dir

Linux users will use the dodo file host / linuxidc directory test.sql saved locally
pscp dodo@ /linuxidc/test.sql D: \ hello \ test.sql

4. Copy the remote server directories and files in the directory to the local
Format: pscp -r user @ ip: / remote_dir \ local_dir

Linux users will use the dodo host / linuxidc directory and directory file saved locally
pscp -r dodo@ / linuxidc / hello1 D: \ hello2

This will save the hello1 directory under hello2 directory

5, used in the script
The directory on the local FileUpload all content transmission remote linux server / linuxidc directory, as follows
(1) The pscp.exe copied to the same directory FileUpload
(2) Create a linuxidc file, then bat at the end, that is linuxidc.bat
(3) document reads as follows
@ECHO Now begin to upload file
@pscp -r FileUpload dodo@ / linuxidc

(4) placing the file you want to upload to the FileUpload directory, you can double-click linuxidc.bat
- Android custom title bar (Programming)
- Ubuntu 15.10 15.04 14.10 14.04 Install Ubuntu Tweak (Linux)
- Binary tree and some basic operations with binary list (Programming)
- Use rfkill soft-switching and Bluetooth wireless capabilities in Linux (Linux)
- Why you should choose Python Programming (Programming)
- UNIX how to restrict users by IP Telnet (Linux)
- Spring WebSocket Comments (Programming)
- How do you prevent other users from accessing your home directory in Linux (Linux)
- Linux crontab commands and detailed usage examples (Linux)
- Four IDS intrusion detection tool under Linux environment (Linux)
- MySQL Parameter Tuning Best Practices (Database)
- How to customize your Linux desktop: Gnome 3 (Linux)
- CentOS 5.8 (64) Python 2.7.5 installation error resolved (Linux)
- Atlassian Linux Shell Scripting the confluence remote backup methods (Linux)
- DataGuard the MRP can not start to analyze and solve problems (Database)
- CentOS install pip (Linux)
- PostgreSQL log classification and management (Database)
- Delete specific files using bash directory under Linux (Linux)
- Nginx Keepalived Nginx monitoring scripts (Server)
- Getting Started with Linux system to learn: How to compress JPEG images on the command line (Linux)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.