Clone virtual machines and Linux machines log on to each other.

Source: Internet
Author: User
Tags ssh ssh server
One: Clone the virtual machine.
On the virtual machine you want to clone, right-click "Manage-" clone.
Follow the prompts to select Link clones, and then start the cloned virtual machine when you are finished.
After entering the Linux system, edit the NIC
Vi/etc/sysconfig/network-scripts/ifcfg-ens33
Remove the UUID line because it will conflict with the original host and modify the IP.

Restart NIC: systemctl restart Network.service
Start the original host and modify the host name of the two hosts.
Hostnamectl Set-hostname Host Name

Two: Linux machines are landing on each other.
SSH server IP
or SSH user name @ip
Or specify the port ssh-p 22 user name @ip
Or use a key to log in, Mr. Key.
Ssh-keygen

Copy the public key to the/root/.ssh/authorized_keys of the target machine
Then connect again.

Clone virtual machines and Linux machines log on to each other.

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.