terminal git add ssh key

C++
$ ssh-add ~/.ssh/id_rsa$ eval "$(ssh-agent -s)"
> Agent pid 59566
Source

Also in C++: