in use ssh-deploy as readme recommend and write a test deploy script,i was tryed all ways that i can considered.but it did not work, if have spare time.
this is clue of my test.
in this image is:
the runner can reach target machine
whoami is runner
ls .ssh dir it's shows runner have rights of know_hosts and private key file,but use cat (ls /pathTo/.ssh) it shows permission denied,it's wired
i doubt the private key did work well,so i copy key in to a ubuntu container(runner also running under a contaienr),then trying same command to connect target host.
the key configuration is works for test container and this is the permission of test file and ownership,in this working case cat ls was readout the file content
in use ssh-deploy as readme recommend and write a test deploy script,i was tryed all ways that i can considered.but it did not work, if have spare time.
this is clue of my test.
in this image is:
runner
i doubt the private key did work well,so i copy key in to a ubuntu container(runner also running under a contaienr),then trying same command to connect target host.
the key configuration is works for test container and this is the permission of test file and ownership,in this working case cat ls was readout the file content
the deploy script is
where i am wrong.