
The process was successful if you see the welcome message of the Ubuntu Hetzner instance

That means that you need to repeat this step with the same key or different keys for each new project. In this step it is important to clarify that the SSH keys are not shared between Hetzner projects. Step 2 - Add the SSH Key to your Hetzner Cloud Console

The file id_rsa.pub is the public key the server needs to authenticate the user and the file id_rsa is your private key that no one should have access to except for you, especially if you skip the step of setting up a passphrase By default this command will create a public and a private Key named id_rsa.pub and id_rsa respectively and they will be saved on the path ~/.ssh/. Yet it protects anyone from copying the file and using it on another computer.
Upload ssh key to server password#
You can configure your ssh client to communicate to keypass, to avoid entering the password every time, but understand, that typically keypass is active all the time, so direct access to your logged in session would not prevent unpermitted access to the server in that case. This passphrase will protect the private key, so no one can access the server even if he has access to your computer. We strongly recommend to set a passphrase in order to set up a secure instance. There are many tutorials on Youtube and the whole internet, where adding a passphrase is just omitted or not recommended. Then you should set your own passphrase for adding more security to the server. If you want to name the file to be able to distinguish between multiple keys for multiple different servers, you can enter /home/user/.ssh/server01 where you replace user with your username You could just hit enter in order to leave the default name ('id_rsa') and location ( /home/user/.ssh/). Then you will be asked for the filename/location of the RSA Key. For example SSH-Key - MacbookPro 13 Inch -t rsa -b 4096 -C "some comment here" Some information about the computer itself should be useful. It is recommended to add a comment at the end in order to identify the SSH Key in the future.

Upload ssh key to server how to#
In this tutorial I will guide you how to setup the secure login with your SSH Key on a new Hetzner instance. In order to access your Hetzner instance from your local computer in a safe way, it is recommended to make use of an SSH Key.
