SSH by default uses the private key at ~/.ssh/id_rsa.
But if you want to use a different private key to access a remote location, you need create one first using ssh-keygen. Specify the location and name (NAME).
To access using SSH, use the -i option as below:
SSH -i ~/.ssh/NAME user@remote.com
No comments:
Post a Comment