Xshell and Virtual Machine docking

Source: Internet
Author: User

The Linux workbench of a virtual machine is not good enough to scroll up to see what is missing and using Xshell is a wise choice.

Install the operating system, general installation 64-bit.

Installing the operating system

The image used is Ubuntu 64-bit 16.04.3 LTS version, saying tomorrow April 2018 will be out of 18.04 LTS version, this version change speed really TM fast.

Set a static IP address
Vim/etc/network/interfaces

Set content must contain the following items

Dns-nameservers and gateway are necessary.

Auto Ens33iface ens33 inet staticaddress 192.168.112.132netmask 255.255.255.0network 192.168.112.0broadcast 192.168.112.255gateway 192.168.112.2# dns-* Options is implemented by the resolvconf package, if Installeddns-nameserver S 192.168.112.2
Set up a virtual machine network

Click Edit Options in the menu bar, click Virtual Network Editor

To change the settings, the main content is as follows

1. Select Nat Mode

2. We previously set the static IP address in and subnet IP a network segment inside

3. Cancel assigning IP addresses to virtual machines using the local DHCP service

Make NAT settings

Set the IP address of the network management, can be in the same network segment

Next Ping www.baidu.com see if can ping pass, can ping pass instructions can connect the outside network.

Installing SSH
Apt-get Install SSH

Set up after installation is complete

Vim/etc/ssh/sshd_config

Locate the following item and modify it as follows (typically only the default configuration for Permitrootlogin is not yes)

# authentication:logingracetime 120PermitRootLogin Yesstrictmodes Yes

You can then access the virtual machine through the Xshell.

Xshell and Virtual Machine docking

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.