Day04.2:linux cloning and login between servers

Source: Internet
Author: User

1, Linux server is actually able to clone the virtual machine, so that more than a new installation more convenient, you can operate on two convenient, cloning steps are as follows:

Open the virtual machine---Right-click-Manage = = Clone: To the following interface:

Clone the current state of the virtual machine:

Create a complete clone to facilitate later operation:

3. Show cloning Progress:

4. Cloning is complete at this time:

5. After cloning, you need to modify the IP address to log in.

Note: After cloning, you need to modify the network card's MAC address and UUID, or it will cause the system to become unusable:

2. Log in between Linux servers: a machine and a B machine, for example.

1, first run on a machine ssh-keygen-t RSA three times after the return of the public key and private key, as follows:

2. Public key and secret key in/root/.ssh/directory:

3, at this time need to put id_rss.pub public key content on the B server, placed in the /root/.ssh/authorized_keys file.

[email protected]. ssh]# scp-p 52588 ~/.ssh/id_rsa.pub [email protected]:.ssh/id_rsa.pub

The command is to replicate the local public key to the remote/root/.ssh directory, but you need to enter the password:

4. Log on to the B machine at this time:

Cat/root/.ssh/id_rsa.pub >>/root/.ssh/authorized_keys

Indicates that the contents of the id_rsa.pub are appended to the redirect file.

Note: In order to not affect the use of the previous key, you must append OH.

5, at this time can use: Return to a machine, directly through ssh-p 52588 [email protected] login.

After testing, you can log in.


Day04.2:linux cloning and login between servers

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.