Connecting to your expert server with SSH key authentication
It is possible to connect to your expert VPS using SSH keyfiles.
It's not always easy to maintain both good password practices and your sanity. SSH keys encrypt the authentication, and can even obviate the need to type a password, unless you want to.
Now, when creating VPS Server in Expert mode (though not with Gandi AI), you can choose from three methods of authentication:
- password
- SSH key
- Both SSH Key and Password
Having provided your public key during the creation of your expert server, you will then be able to log in with the following command (replacing 123.123.123.123
with your server's IP):
ssh root@123.123.123.123
The only requirement for keeping the connection secure is that you maintain the security of the private key file. You can add to this by adding a passphrase to the key when you create it, but that is up to you.
Using the SSH key only, you will be able to connect to your VPS using the root user direclty, then you have to configure the passwords for each user including root (without root password, if an issue occurs, you won't be able to connect to your VPS using the emergency console).
See also
- Gandi bar post: SSH Key Authentication Added to Gandi Cloud Hosting (7 March 2012)