Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ pscp use Detailed Windows and Linux each file transfer tool     - Apache Mina framework Practice (Programming)

- File easier to compare tools under Linux (Linux)

- Copy files between two Linux hosts (Linux)

- Syncthing: Private Security Synchronization tool to synchronize files between computers / folder (Linux)

- Linux alpine use the command line to access Gmail (Linux)

- Redis performance test (Database)

- GO five stages of language learning (Programming)

- Windows 8.1 hard drive to install Ubuntu 14.04 dual system reference tutorials and multi-drive Precautions (Linux)

- Analysis of Java exception (Programming)

- Install Redis 2.6 5.5 32 position CentOS error resolved (Linux)

- Oracle in the add & split partition on the impact of global & local index (Database)

- rpm package specify the installation path (Linux)

- Python in yield (Programming)

- How to Install Android Studio on Ubuntu 15.04 / CentOS7 (Linux)

- Get the Linux device PCI ID method (Linux)

- Spark On YARN cluster installation deployment (Server)

- Linux based serial programming (Programming)

- Linux install Samba file sharing server (Server)

- Node.js development environment deployment (Server)

- Android application security of data transmission security (Programming)

  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
- To configure parameter configuration and software installation and uninstallation under Linux (Linux)
- Getting Started Linux Shell Scripting (Programming)
- Sublime Text 3 (Linux)
- How to install the Linux text editor Atom 0.124.0 (Linux)
- Linux C programming and Shell Programming in the development of practical tools similarities summary (Programming)
- Using the Linux folder wc statistics number of lines of code for all files (including subdirectories) (Linux)
- Heartbeat (v1, v2, pacemaker) cluster components Overview (Server)
- ASM Disk Space Check (Database)
- Linux kernel IPv6 protocol closed manner (Linux)
- WebLogic 12c Configuration Node Manager Managed Server (Database)
- Detailed software to run UnixBench (Linux)
- Ubuntu apt-mirror established local private sources (Linux)
- Linux directory configuration (Linux)
- Servlet life cycle works (Programming)
- Transfer files and permissions from Windows to Linux system by Samba (Linux)
- Java factory pattern (Factory mode) (Programming)
- CentOS 7 install Hadoop-cdh-2.5 on Mesos (Server)
- JavaScript notes --Objects (Programming)
- MNIST presentation and database conversion (Database)
- 5 interesting Linux command line tips (Linux)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.