Wednesday, July 24, 2019

SSH with identity file or Private Key

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

No comments:

Post a Comment