Last update at :2024-07-07,Edit by888u
Although DigitalOcean merchants currently do not have the Asian data center that we urgently need (the existing one in Singapore is not very good), judging from the users that Snail has contacted and the machines that I have set up on it, the stability is still good. Yes, the only dissatisfaction issue is that when creating a new VPS project, I don’t know whether it is for security reasons or other issues. The random password for the ROOT was sent to us through the account email.
We cannot see or customize the ROOT password in the DigitalOcean backend. This problem is not surprising. What is strange is that their email system has delays and cannot send emails. Anyway, at least several of my accounts cannot receive them. When I get the ROOT password email, even if I receive it, it takes a long time. On the contrary, their advertising push is more accurate and timely.
No, to solve this problem we cannot hope that they will modify the panel function. We can only solve it ourselves. First, reset the password several times. Second, we use the SSH KEY key to log in to the SSH tool.
Snail has written two SSH KEY related articles before:
1. Set up Putty SSH to use the key to log in to the Linux VPS host
2. Xshell sets key login to ensure Linux VPS and server are more secure
In view of the security issues of the VPS host, we can try our best to use the key to log in to SSH when applying it. After all, direct ROOT login with clear code may have certain security issues.
First, Xshell software generates SSH KEY key
Here Snail is accustomed to using the xshell tool as the SSH client. If we use PUTTY or other software, there are some similar articles, all of which are similar. We only need to obtain the generated key, because before opening the DO host Need to be filled in when required.
1. Create SSH KEY Wizard
We open the Xshell software, then see the picture above and select "New User Key Generation Wizard".
2. Set key generation parameters
Select the key type and key length according to our needs. My choice here is a little more complicated.
3. Generate public and private key pairs
4. Set user password and key name
5. View created users
6. Copy the key and export
Here we copy the public key and export it for safekeeping. We will need to use the copied version when setting up DO VPS. In this way, our SSH KEY is created on the XSHELL client.
Second, use SSH KEY to open DigitalOcean VPS
We go to the DigitalOcean backend and create a new VPS by selecting Create Droplet as we normally would. Enter the host name, plan of choice, data center, and whether additional product features are required based on our personal needs.
The key point is here, enter the public key we created, then enter it and click ADD SSH KEY to add. Then create the VPS, and after the creation is complete, we use Xshell to log in.
Third, use Xshell to log in to DigitalOcean with SSH KEY
According to the machine we opened, obtain the IP address, then enter the IP and name normally, then switch to user authentication and select KEY to log in.
Create a user who selects the KEY data we set, then enter our set password and click OK. When logging in for the first time, we also need to set the user name root and fill it in, and then log in automatically. There is no need to enter the ROOT password or change the password, because the KEY is used directly to log in.
To summarize, this can solve the problem that you need to receive an email to find the DO VPS password. I have finished writing the article, but the ROOT password of a machine I opened before has not yet been sent. The only important thing is that we must keep the PUB key file and the local password we set, so that there is no problem in changing machines.
Recommended site searches: hosting, cm domain name registration, domain name server, free personal homepage space, network server rental, virtual host evaluation, Hong Kong server rental, php host, domain name registration network, php space recommendation,
发表评论