What is the Difference Between SSH key Log-in and Password Log-in?
SSH key is a way to remotely log in to a Linux server. Its principle is to use a key generator to create a pair of keys (public key and private key). Add the public key to the server, and then use the private key on the client to complete the authentication and login. This method pays more attention to data security, and is different from the manual input of the traditional password login method, and is more convenient.
Currently, Linux instances support both password and SSH key log-in methods, while Windows instances only support password log-in at this time. See related documentation:
Can I Use SSH Keys to Log in and Passwords to Log in at the Same Time?
Users log in to Linux instances using SSH keys , and password log-in is disabled by default to enhance security. Therefore, after logging in with a key, users will no longer be able to use a password to log in.
What Should I Do If I Forget My Password?
You can reset your password. See Resetting Instance Password for more information.
How to Create SSH Keys and What to Do If You Lose Them?
See Creating SSH Keys for how to create SSK keys.
We provide two solutions to the key loss problem:
- Create a new key through the SSH key console of the CVM and bind the new key to the original instance.
- Creating a SSH key.
- After the key is created, log in to the CVM instance console.
- Select the original instance to which the key is to be bound, click Operation > Password/Key > Load Key, and then you can use the new key to log in to the instance.
- Reset your password through the CVM console and use the new password to log in to the instance. See Resetting Instance Password for more information.
How to Bind/Unbind a Server Using SSH Keys?
See the Binding/Unbinding Server Using SSH Key section of SSH Key Operation Guide.
How to Change the SSH Key Name/Description?
See the Modifying the Name/Description of SSH Key section of SSH Key Operation Guide.
How to Delete SSH Key?
See the Deleting SSH key section of SSH Key Operation Guide.
What Are the Use Limits of SSH Keys?
See the Use Limits section of SSH Key Introduction.