Home » Tips & Tricks » SSH » SSH Pubkey Authentication

SSH Pubkey Authentication

SSH Pubkey Authentication

Login to a remote server from another server with SSH Pubkey Authentication, and avoid the password prompt.

SSH Pubkey Authentication

Create an SSH key for pubkey authentication

#ssh-keygen -t rsa

or

#ssh-keygen -t dsa

Copy the key to the remote server

#scp ~/.ssh/id_dsa.pub username@192.168.168.200:

 

 On the remote server

#cat id_dsa.pub >> ~/.ssh/authorized_keys

 


* This post may contain affiliate links. This means that I “might” receive a tiny amount of money, if you make a purchase using one of our links. It does not cost you anything extra, and helps us defray the costs of hosting and maintaining this site.

Leave a Reply