Ssh-agent
Jump to navigation
Jump to search
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
Windows
Start-Service ssh-agent ssh-add $HOME\.ssh\mysshkey ssh myremoteuser@myremotehost