To add an SSH agent to your session, follow these steps:
1. Open a terminal window.
1. Type the following command to start the SSH agent:
```
eval $(ssh-agent)
```
You should see a message indicating that the agent has been started, along with the agent’s process ID.
1. Add your SSH key to the agent by running the following command:
```
ssh-add /path/to/your/private/key
```
Replace “/path/to/your/private/key” with the file path of your private key file. If your private key has a different name, replace “id\_rsa” with the name of your key file.
1. Enter the passphrase for your private key when prompted.
Your SSH key should now be added to the SSH agent, and you can use it to authenticate to remote servers without having to enter your passphrase every time.