Difference between revisions of "Ssh-agent"
Jump to navigation
Jump to search
(Created page with "ssh-agent bash -c 'ssh-add /somewhere/yourkey; git clone git@github.com:user/project.git'") |
|||
Line 1: | Line 1: | ||
+ | ``` | ||
ssh-agent bash -c 'ssh-add /somewhere/yourkey; git clone git@github.com:user/project.git' | ssh-agent bash -c 'ssh-add /somewhere/yourkey; git clone git@github.com:user/project.git' | ||
+ | ``` | ||
+ | |||
+ | ``` | ||
+ | ssh-agent bash | ||
+ | ssh-add - <<< $(echo "${{ secrets.PRIVATE_SSH_KEY }}") | ||
+ | ssh-keyscan -H 10.x.x.x >> ~/.ssh/known_hosts | ||
+ | ``` |
Revision as of 22:28, 3 October 2022
ssh-agent bash -c 'ssh-add /somewhere/yourkey; git clone git@github.com:user/project.git'
ssh-agent bash ssh-add - <<< $(echo "${{ secrets.PRIVATE_SSH_KEY }}") ssh-keyscan -H 10.x.x.x >> ~/.ssh/known_hosts