Remote login between single-user mode, rescue mode, clone, and Linux

Source: Internet
Author: User

Single-user mode setting password

Enter the system by pressing the arrow keys to move the cursor, select the operating system, according to the letter "E", into the grub editing mode, the linux6 line "ro" changed to "RW" after adding "init=/sysroot/bin/sh" press ctrl+x into the emergency mode
Then chroot/sysroot, switch to the user's operating system, and then passwd to change the password, the period has the disorder character, you can lang=en set the support language,
Finally, the most important step is to touch/.autorelabelso that the modified password is loaded when the system starts and the changed password takes effect.
Then exit exits to the single user's operating system, execution reboot takes effect

Rescue Mode setting password
P style= "margin:0px 0px 1.2em!important" >vmware settings Select the CD/DVD floppy drive, browse the installed system ISO file, select Connect at power on device status,
and then Power up the system, go to the Select page, select Troubleshooting -—— Rescue Centos Linux system* ——— 1 Continue
Then follow the prompts
chroot/mnt/sysimage at this point, enter the prompt from sh-4.2 to BASH-4.2 , then enter passwd root** Modify the password,
then exit to the original system, and then reboot can

clone the system

1, first exit the system to be cloned
2, right-click system Management-cloning-next-clone mode select Create a link clone, always follow the requirements normal next (link clone cannot be independent with original system)
3, the system created is identical to the original system. Avoid two virtual machines at the same time to turn on the network conflict, so change the clone system IP, in fact, even the public key inside the same so that the same private key can connect the two virtual machines,
and for better differences can modify the ihostname hostname to distinguish between *hostname Hostname , this practice is a single modification, restart does not take effect Cat/etc/hostname , you can see the configuration file does not change, you can use the command *HOSTNAMECTL- Set-hostname Host name (hostname-help view usage), and then view the configuration file that you see has changed.

Linux Remote login Linux

1, the format is: SSH [email protected]-P port number (default is 22)
2. Key login: Generate private key and public key in virtual machine 1 input Ssh-keygen , copy the value of public key, execute echo Public key value in virtual machine 2 >> Authorized_keys, Then direct SSH through the key login does not require a password (Ssh-keygen create the key without setting the password).

?

Remote login between single-user mode, rescue mode, clone, and Linux

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.