we've made a windows 2k19s custom image file containing somes of ours tools and an OpenSSH client.
In a build job running this image, we need to connect to ssh server to copy some config file and reload apache.
But it's not really working as expect :
Even using some --t parameter to ssh does not work.
Do you have a way to connect to ssh from docker to another server of our network ?
Thanks
bufferUnderrun commented 3 years ago
When running the image in powershell outside onedev
docker run -it docksdev/band:2.1
This works
ssh onedev@10.52.0.25
bufferUnderrun commented 3 years ago
i've tried to set in onedev config but disabled
Robin Shen commented 3 years ago
OneDev can not use "-it" option to run docker as otherwise it will be in interactive mode to cause build hanging. This problem is common to batch script doing ssh things and not specific to OneDev. You may googled around to see if these solutions work:
Hi,
we've made a windows 2k19s custom image file containing somes of ours tools and an OpenSSH client.
In a build job running this image, we need to connect to ssh server to copy some config file and reload apache. But it's not really working as expect :
Even using some --t parameter to ssh does not work.
Do you have a way to connect to ssh from docker to another server of our network ?
Thanks