Displaying 1 result from an estimated 1 matches for "my_sub_deployment_script".
2013 Sep 22
1
ad-hoc ssh agent + control persist
...39;m using ssh to deploy software remotely. I download stuff on the remote
box from git repositories over ssh using ssh deployment keys. For this to
work, I start locally an ad-hoc ssh agent loaded
with only the deployment keys, and forward it to the remote host. I can use
something like
ssh-agent my_sub_deployment_script
so that ad-hoc ssh agent only exists when needed. This alone works very
well.
One deployment needs several ssh connections. For obvious performance
reasons using control persistance (ControlPersist=60 for instance) is
highly desirable.
Here is the problem: if ssh-agent stops when last connection...