Analysis of inter-network file transmission

Source: Internet
Author: User
Tags scp file pscp scp command secure copy


Analysis of inter-network file transmission: file transmission between Linux and Linux transfers files between Linux and Linux. The most common and convenient way is to use the scp command: scp file username @ hostIP: Directory example: scp aaa.txt liubin@192.168.0.100:/home/aaa.txt file transfer between windows and linuxdownload the pscp.exe file in Windows system, PSCP is the Putty installation package environment (or Putty extract directory to add Path environment variables), in the command line window using the pscp command: C: \ Users \ william. liub> pscpPuTTY Secure Copy clientRelease 0.62 www.2cto.com Usage: pscp [options] [user @] host: source target pscp [options] source [source...] [user @] host: target pscp [options]-ls [user @] host: filespecOptions: -V print version information and exit-pgpfp print PGP key fingerprints and exit-p preserve file attributes-q quiet, don't show statistics-r copy directories recursively-v show verbose messages-load sessname Load settings from saved session-P port connect to specified port-l user connect with specified username-pw passw login with specified password-1-2 force use of particle SSH protocol version-4-6 force use of IPv4 or IPv6
-C enable compression-I key private key file for authentication-noagent disable use of Pageant-agent enable use of Pageant-batch disable all interactive prompts-unsafe allow server-side wildcards (DANGEROUS) -sftp force use of SFTP protocol-scp force use of SCP protocol www.2cto.com pscp file username @ hostIP: Directory example: pscp abc.txt liubin@192.186.0.100:/home/abc.txt the command is to Windows System in front of the directory of abc.txt file c To run the opy command in the home directory of machine 192.168.0.1, enter the password of liubin in machine 192.186.0.100. You can also use the-l parameter to specify the user name, as shown below: pscp-l liubin abc.txt 192.186.0.100:/home/abc.txt Note: The-l parameter must be followed by the pscp command, the command has the same effect as the appeal command pscp command can also use the-r parameter copy folder to a remote machine, using: pscp-r dir username@192.168.0.10: the directory also uses the pscp command to copy files or folders on Linux machines to windows. You only need to interact with the source and target, as shown in the following code: pscp username @ hostIP: directory \ file: pscp liubin@192.168.0.1: home \ abc.txt. run this command Abc.txt file copy to the current directory of windows; pscp command can also copy the folder on the Linux machine to windows, also use the-r parameter: pscp-r liubin@192.168.0.1: home \ dir. run this command to copy the dir folder under the/home Directory of 192.168.0.100 to the current directory of windows; www.2cto.com uses the SCFTP tool to transfer files between Windows and Linux. The SCTFP tool is also a tool in the Putty installation package. This tool can establish an FTP channel between windows and Linux, run the scftp hostIP command to open the connection between windows and Linux. For example, enter the server username and password for scftp 192.168.0.1.
The pwd and lpwd commands can be used to view the current working directory of the remote server and the local server respectively. The cd and LCD commands can be used to switch the current working directory remotely and locally; the ls or dir command can list objects in the remote current working directory ;! The dir command can list the current local working directory. You can use the get/put command to download and upload files, for example: get file downloads the file from the current working directory of the remote service to the current local directory. put file uploads the file files in the current local directory to the current working directory of the remote server; to download and upload folders, you need to use the-r parameter, such as the get-r dir and put-r dir more detailed SCTP commands, which can be viewed by the help Command. Author shenzhen_liubin

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.