Mutual file transfer between Windows and Linux

Source: Internet
Author: User
Tags pscp

Mutual file transfer between Windows and Linux

I am used to copying and pasting Windows instances, but I am not used to transferring them to Linux instances. Moreover, for Windows virtual machines built on windows, you can seamlessly copy and paste them from the host to the virtual machine, it is especially troublesome to copy files from Windows to Linux. The following describes two methods to copy files in Windows and Linux.

1. Use WinSCP

Install WinSCP in Windows and log on to the host using the Linux IP address and user name and password. You can drag files from Windows directly to the directory path, which is also very convenient. But there is a problem. This software can only copy relatively small files. When there is a large file, it will be disconnected or the network is unstable. If the connection is closed, it needs to be re-transmitted. note: After you click "Abort", another window will be displayed for you to choose "Abort" or "reconnect". The experiment proves that this reconnect is useless. The "Abort" window will be displayed after the countdown is introduced.

2. Use Putty

Putty is a free software. Before using Putty, make sure that the Linux ssh service is in the startup status. You can use the service ssh status to check whether the service is started. If ssh is not installed, run the following command to install Ubuntu)

Sudo apt-get install openssh-server

1. start the ssh service: sudo/etc/init. d/ssh start

You can use ps-e | grep ssh to check whether the ssh service is enabled.

Stack @ TEST:/etc/init. d $ ps-e | grep ssh
1378? 00:00:00 sshd
31015? 00:00:00 sshd
31066? 00:00:00 sshd

2. Use Putty to log on to Linux: Enter the IP address, port number 22, and SSH. In the pop-up cmd, enter the user name and password to log on.

 

3. Run cmd in Windows and switch to the installation path of Putty. Run the command pscp source_path username @ hostIP: target_path.

I uploaded the Ubuntu Installation File to use VMware vsphere to build a virtual machine:

Pscp C: \ Users \ IBM_ADMIN \ Downloads \ ubuntu-14.04.2-desktop-amd64.iso root@9.115.246.189:/vmimages

Wait until the transfer is completed. This method is relatively stable and will not be affected by the file size. Of course, it would be easier to use WinSCP for small files.

This article permanently updates link: http://www.Linuxidc.com/Linux/2015-03/115106.htm

Related Article

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.