Host Windows access virtual machine Linux files (i)

Source: Internet
Author: User
Tags file transfer protocol ftp protocol

If the user is using the Windows operating system, but the Linux kernel operating operating system is configured under the virtual machine, it is often necessary to implement access to the Linux kernel operating system through the host Windows operating system. This experiment is implemented by the host Windows 10 access virtual machine ubuntu file operation.

First, the preparation and requirements of the experiment

Requires the host computer to install the Windows operating system and the virtual machine to configure the Linux kernel operating system.

The experimental environment:

1) Host: WINDOWS10 operating system;

2) Virtual machine: Ubuntu kylin_15.10 operating system.

Second, the experimental process and results

The experimental steps are mainly divided into two steps, the first step is the FTP service configuration under Ubuntu, the second step is to access the Ubuntu folder via the FTP service WINDOWS10.

  1. Ubuntu FTP Service configuration

1.1) Ubuntu Terminal input: $ sudo apt-get install VSFTPD, then enter the login password to start installing the VSFTPD package.

The Ps:vsftpd=very secure File Transfer Protocol daemon a very secure FTP background process. 1.2) Open vsftpd config file, enter command: $ sudo gedit/etc/vsftpd.conf.

Search for anonymous_enable by combining shortcut keys [Ctrl + F], find anonymous_enable=no and change it to Anonymous_enable=yes, and change the default non-anonymous FTP to anonymous FTP.

1.3) After the above steps, the FTP service configuration is completed in Ubuntu. Next look at Ubuntu IPV4.

Method One: Terminal input command: $ ifconfig, which displays all IP configuration information in Ubuntu.

Method Two: Look in the graphical interface.

  2. WINDOWS10 uses FTP service to connect to the FTP service port opened by Ubuntu

2.1) under Windows, press the combo shortcut [Ctrl + R], then enter CMD to open the console, enter the command: FTP remote computer IP address, enter the remote computer user name and password to connect successfully.

2.2) Although landed successfully (successful login), but appeared: 425 Failed to establish connection. This is because Windows Firewall blocks windows from using this FTP service.

You can use "Shut down the firewall" to continue, after the firewall is turned off, the original error will no longer appear, Windows can access the home folder files via an Ubuntu-enabled FTP server. Successful implementation of the Ubuntu service under WINDOWS10, you can manipulate the files in the Unbuntu.

2.3) Access and download the files in Ubuntu Home folder via the Get command. Files that are transferred in Linux must be located under Home folder.

Get command: Implements the download file from Ubuntu home directory to the specified Windows directory to save. That is, the command format: Get linux_homefolder_ file Windows_ absolute path (including file names that need to be downloaded to save)

Because of permission restrictions, you cannot use the put command to upload files to the Ubuntu user home directory.

Third, the experience of experimental experiences

Through this experiment, we learned a lot about Linux basic commands and the ability to solve problems through the Internet.

1) experiment in the virtual machine in the Ubuntu operating system environment to configure the FTP server, under the host Windows through the FTP server to achieve access to Ubuntu resources function.

2) Preliminary understanding of the FTP protocol principle. FTP protocol is a TCP-based application layer protocol, the FTP service process occupies 2 ports, 20 ports for data transmission, 21 ports for instruction transmission.

3) Follow-up needs to understand the principle of firewall deeply.

4) After a period of time after the input instruction, appears: 421 Timeout, remote host shutdown connection. is disconnected by the FTP server because the data channel is not used for a long time.

  

Host Windows access virtual machine Linux files (i)

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.