< All Docs

How to access a server through password-less authentication

Create a Microhost account to try this guide with a $50 credit.

Table of Content


In this article, you will learn how to access a server through password-less authentication.

SSH, also known as Secure Shell or Secure Socket Shell, is a network protocol that gives users, particularly system administrators, a secure way to access a computer over an unsecured network. SSH also refers to the suite of utilities that implement the SSH protocol. Secure Shell provides strong password authentication and public key authentication, as well as encrypted data communications between two computers connecting over an open network, such as the internet.

  1. Login server via putty

2. Generate SSH key at your server

# ssh-keygen

3. Enter file in which to save the key (/root/.ssh/id_rsa): press enter

4. Enter passphrase (empty for no passphrase): press enter

5. Enter same passphrase again: press enter

Now your SSH key will be created on .ssh folder with name id_rsa.pub

6. Use the following command to go to the.ssh directory.

# cd .ssh

7. Use this command to display the content of a folder.

# cat id_rsa.pub


8. You should now enter your login information for your microhost account and head over to the SSH key area.

9. To import an SSH key, select it and click Import.

10. At this point, you need to paste the SSH key shown in step no.7 and specify the name.

11. With the SSH key we just imported into our microhost account, we can now set up a new server.

12. After successful deployment of new server try to access from which you have generated SSH key.

# ssh root@new server ip


Hopefully, you have learned how to access a server through password-less authentication.

Thank You 🙂

Previous DNS Management
Next How to add additional storage in the Microhost Cloud Server
Table of Contents