Saturday, January 9, 2021

Adding ssh key to ssh-agent so everytime you don't have to enter pass phrase for the rsa key


 Start ssh-agent if not started:

$ eval `ssh-agent -s`

Add your private key using ssh-add

$ ssh-add ~/.ssh/id_rsa_key  
Enter passphrase for /home/user/.ssh/id_rsa_key:  
Identity added: /home/user/.ssh/id_rsa_key   
(/home/user/.ssh/id_rsa_key)  

Check if the key is added (parameter is a lowercase L):

$ ssh-add -l  
2048 55:96:1a:b1:31:f6:f0:6f:d8:a7:49:1a:e5:4c:94:6f  
/home/user/.ssh/id_rsa_key (RSA)

Share Article : Adding ssh key to ssh-agent so everytime you don't have to enter pass phrase for the rsa key
Share/Save/Bookmark

0 comments:

Post a Comment