git clone via ssh passphrase code example
Example 1: git clone ssh key
ssh-agent bash -c 'ssh-add /somewhere/yourkey; git clone [email protected]:user/project.git'
Example 2: always asks for ssh-add
ssh-agent
ssh-add ~/.ssh/<name>_id
ssh-agent bash -c 'ssh-add /somewhere/yourkey; git clone [email protected]:user/project.git'
ssh-agent
ssh-add ~/.ssh/<name>_id