Log in to the server via SSH using a key

As we already know in How to create your own key ssh by means of which we will only sign moles thanks to him for servers below guide on how to prepare the server to log only key.

I accept that we have already downloaded / save your public key and private so his move to add on a server.

Create a directory with the command key:

And we make editing:

And paste: our public key:

 

#a computer at home is simply a description of the key to us was easier to manage them.

Now we go to the ssh server edition:

And change:

 

na :

 

Another line is:

change the:

Thanks to the login password will be disabled.

Ssh command to restart the service:

be:

Depending on the system.

It's all in the case of putty in the Auth choose our private key.

When connecting to the server console after login administration should also give private key password.

 

How useful this post was?

Click on the star, to evaluate it!

Average grade / 5. number of votes:

So far, no votes! Be the first to rate this post.