SSH to a remote server using a Private-Key

the following steps describe how connect to a remote server via ssh private key instead of password

 

Step 1:

Generating RSA public and private keys in the client machine

ssh-keygen

 

Step 2:

copying the client public key to the authorized keys file at the server

copy_public_key_to_remote_server

 

 

Step 3:

connecting directly to the server with without password

connect_with_private_key

Leave a Reply

Your email address will not be published.