Linux Create Xshell key binding Digitalocean account solve root password mailbox collection problem

Source: Internet
Author: User
Tags vps use ssh key to login

Although the Digitalocean merchants do not have the Asian data center that we desperately need (the Singapore is not too good), but from the old left contact to the user, as well as the current I also have the machine on the above look, stability is good, The only thing that's not satisfying is that when you create a new VPS project, you don't know whether it's security or any other problem, the root random password is sent to us through the account email.

We are not in the Digitalocean background is unable to see and can not customize the root password, this question is not surprising, the problem is that their mail system is delayed, unable to send the mail problem, anyway, at least I have a few accounts can not receive the root password mail, even if received is a long time lapse. On the contrary, their advertising push is more accurate and timely.

This is not, to solve this problem can not expect them to modify the panel function, we can only solve their own way, one multiple times password, and then we use SSH key to login SSH tool method.

Old left in the previous has written 2 SSH key related articles:

1, set Putty SSH use key to login Linux VPS Host

2, Xshell set key login to ensure that Linux VPS and server more secure

In view of the VPS Host security problems, if we are in the application can also try to use the key to login ssh, after all, direct root plaintext login may have some security problems.

First, Xshell software generates SSH key key

Here old left accustomed to use the Xshell tool as an SSH client, if we have to use putty or other software, there are similar articles, are almost, we just get the generated key can be, because in the open do host need to fill in.

1. Create SSH Key Wizard

We open the Xshell software, and then see the image above, select the new User Key Generation Wizard.

2. Set the key parameters for generating keys

Depending on what we need to choose between the key type and the key length, I have a slightly more complex choice here.

3. Generate public and private key pairs

4. Set user password and key name

5, to view the users created

6. Copy Key and Export

Here we copy the public key and export custody. We need to copy it when we open do VPS. This way our SSH key is created on the Xshell client.

Second, the use of SSH key to open Digitalocean VPS

We go to the Digitalocean backstage, according to our normal select Create droplet new VPS. Enter the host name, selection scheme, data center, and whether additional product functionality is required, depending on our individual needs.

Key place here, enter the public key we created, and then enter in to click Add SSH key added. Then we login with Xshell after creating the VPS and so on.

Third, the use of Xshell login with SSH key Digitalocean

According to our open machine, get to the IP address, and then the normal input IP and name, and then switch to user authentication, select key login.

Set up Select the key information users we set up, and then enter our set password, click OK. On the first landing we also need to set the user name root to fill in, and then automatically login, do not need to enter the root password, do not have to change the password, because here directly with the key login.

Summary, so you can solve the need to use to receive the message can find do VPS password problem, I have finished writing, before the opening of a machine root password has not been sent over. The only thing that needs to be done is to keep the pub key file and the local password we set up so that the machine doesn't matter.

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.