1, the Linux server can clone the virtual machine, so that two convenient operation, the cloning steps are as follows:
Open the virtual machine---Right-click-Manage = = Clone: To the following interface:
650) this.width=650; "Src=" Https://s2.51cto.com/oss/201710/24/1c720aa57f8d5cadff78399abffb6586.png-wh_500x0-wm_3 -wmp_4-s_1279585888.png "title=" 1.png "alt=" 1c720aa57f8d5cadff78399abffb6586.png-wh_ "/>
Clone the current state of the virtual machine:
Create a complete clone to facilitate later operation:
650) this.width=650; "Src=" Https://s1.51cto.com/oss/201710/24/6bf68900653b3504035e3e0a0d27717a.png-wh_500x0-wm_3 -wmp_4-s_2115695407.png "title=" 1.png "alt=" 6bf68900653b3504035e3e0a0d27717a.png-wh_ "/>
3. Show cloning Progress:
650) this.width=650; "Src=" Https://s5.51cto.com/oss/201710/24/786c59b867dec1a944319eaa504d7494.png-wh_500x0-wm_3 -wmp_4-s_789865052.png "title=" 3.png "alt=" 786c59b867dec1a944319eaa504d7494.png-wh_ "/>
4. Cloning is complete at this time:
650) this.width=650; "Src=" Https://s3.51cto.com/oss/201710/24/07bd60fff433ca4b268352a2f633454d.png-wh_500x0-wm_3 -wmp_4-s_280687364.png "title=" 4.png "alt=" 07bd60fff433ca4b268352a2f633454d.png-wh_ "/>
5. After cloning, you need to modify the IP address to log in.
2. Log in between Linux servers: a machine and a B machine, for example.
First run ssh-keygen-t RSA on a machine for three consecutive returns after generating the public and private keys, as follows:
650) this.width=650; "Src=" Https://s5.51cto.com/oss/201710/24/c1007fcc94c773ac5c8524acdd0a7d8d.png-wh_500x0-wm_3 -wmp_4-s_1088286729.png "title=" 5.png "alt=" C1007fcc94c773ac5c8524acdd0a7d8d.png-wh_ "/>
2. Public key and secret key in/root/.ssh/directory:
650) this.width=650; "Src=" Https://s1.51cto.com/oss/201710/24/ef44e9e6a01aa524564dc34c5b83f4bf.png-wh_500x0-wm_3 -wmp_4-s_398036426.png "title=" 6.png "alt=" Ef44e9e6a01aa524564dc34c5b83f4bf.png-wh_ "/>
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:
650) this.width=650; "Src=" Https://s1.51cto.com/oss/201710/24/89acc5d69ed98b04c00db28632d5c858.png-wh_500x0-wm_3 -wmp_4-s_851187553.png "title=" 7.png "alt=" 89acc5d69ed98b04c00db28632d5c858.png-wh_ "/>
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.
650) this.width=650; "Src=" Https://s5.51cto.com/oss/201710/24/db5027874ae519c0be33674f58c9a61c.png-wh_500x0-wm_3 -wmp_4-s_3224763457.png "title=" 8.png "alt=" Db5027874ae519c0be33674f58c9a61c.png-wh_ "/>
5, at this time can use: Return to a machine, directly through ssh-p 52588 [email protected] login.
650) this.width=650; "Src=" Https://s4.51cto.com/oss/201710/24/9914fe619c26d9fa80d8657441936257.png-wh_500x0-wm_3 -wmp_4-s_3555749091.png "title=" 9.png "alt=" 9914fe619c26d9fa80d8657441936257.png-wh_ "/>
After testing, you can log in.
This article is from the "_de blog" blog, be sure to keep this source http://yuanhaohao.blog.51cto.com/7714752/1975817
Lesson four: Linux Cloning and server login (ii)