adding in ssh agent 1

adding in ssh agent

$ ssh-add ~/.ssh/id_rsa

Here is what the above code is Doing:
1. ssh-keygen -t rsa -b 4096 -C “your_email@example.com”
– Generates a new ssh key, using the provided email as a label
– Generates a 4096 bit RSA key pair
– Stores the keys in the ~/.ssh directory
2. eval “$(ssh-agent -s)”
– Starts the ssh-agent in the background
3. ssh-add ~/.ssh/id_rsa
– Adds the SSH key to the ssh-agent

Similar Posts