Hi Chad,
But when I am trying to clone it always failing with error “permission denied (publickey)”. I have permission in both working and non working images and both are same.

--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CAMUPJd5qEuVd6E%3DED%3DD3j_KjQaSXbwy%3DdTv%3DhYK36dmG%2BVFiZQ%40mail.gmail.com.
Hi Ketan,See below screenshotI have verified these permission with the working agent(21.3).
--RegardsSachinOn 17 Jan 2022, at 5:27 PM, Ketan Padegaonkar <ketanpad...@gmail.com> wrote:--On Mon, Jan 17, 2022 at 11:15 AM Sachin Gupta <sachink...@gmail.com> wrote:Hi Chad,But when I am trying to clone it always failing with error “permission denied (publickey)”. I have permission in both working and non working images and both are same.What are the permissions on the public key `ls -al ~/.ssh` when executed as the `go` user?
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CAMUPJd5qEuVd6E%3DED%3DD3j_KjQaSXbwy%3DdTv%3DhYK36dmG%2BVFiZQ%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/5CB818FF-E3D7-491B-947B-B3A16FE8C80F%40gmail.com.
On 17 Jan 2022, at 6:10 PM, Sriram Narayanan <srir...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CANiY96YW_Cs7f5wvKS92CDsNsNu4TQ9nrzYWOS%2BS1J5d%3D3XKcA%40mail.gmail.com.
Hi Sriram,It’s not because of that, I already tried same error, I am getting when I am running version 21.3 but able to do clone without any issue. Just for info I am running these two images manually without gocd sever( I mean not executing using gocd pipelines), the only difference is the version of docker-dind.By Right I am not supposed to add anything to know host as it will wipe off once the pod restart or spin up again.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/ED91500D-E904-4E81-8C05-CAF2CC514E70%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/5CB818FF-E3D7-491B-947B-B3A16FE8C80F%40gmail.com.
Hi Sriram,Please se below two images both are using same docker file the only difference is image version. The image with version 21.3 able to do git clone while with version 21.4 not able to do so.
In the above you can see it’s started repo cloning but in the below it’s directly throwing error and failed to do clone.I am not sure if it’s new alpine image issue or git version.RegardsSachinOn 17 Jan 2022, at 7:26 PM, Sriram Narayanan <srir...@gmail.com> wrote:
On Mon, Jan 17, 2022 at 6:32 PM Sachin Gupta <sachink...@gmail.com> wrote:
Hi Sriram,It’s not because of that, I already tried same error, I am getting when I am running version 21.3 but able to do clone without any issue. Just for info I am running these two images manually without gocd sever( I mean not executing using gocd pipelines), the only difference is the version of docker-dind.By Right I am not supposed to add anything to know host as it will wipe off once the pod restart or spin up again.I had a look at the delta for dind for 21.4 here: https://github.com/gocd/docker-gocd-agent-dind/commit/d6d0befcd3b8065e9e79631c55e420a40289c2d9#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R69Could you share the command line using which you are running the 21.3 and the 21.4 containers?For certain the known_hosts is not being written to in your case with 21.4, and I'm wondering if there are any privilege or permission issues getting in the way. The go-cd agent version itself is the same provided in other deployment scenarios.
On Mon, Jan 17, 2022 at 6:06 PM Sachin Gupta <sachink...@gmail.com> wrote:Hi Ketan,See below screenshotI have verified these permission with the working agent(21.3).
Hey, if you add an entry of that remote server to the known hosts file and then mount or make available that file, then the SSH connection should succeed.The error message in that screenshot shows us that the entry of the remote server is missing and could not be added either.
Regards
SachinOn 17 Jan 2022, at 5:27 PM, Ketan Padegaonkar <ketanpad...@gmail.com> wrote:--On Mon, Jan 17, 2022 at 11:15 AM Sachin Gupta <sachink...@gmail.com> wrote:Hi Chad,But when I am trying to clone it always failing with error “permission denied (publickey)”. I have permission in both working and non working images and both are same.What are the permissions on the public key `ls -al ~/.ssh` when executed as the `go` user?
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CAMUPJd5qEuVd6E%3DED%3DD3j_KjQaSXbwy%3DdTv%3DhYK36dmG%2BVFiZQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/5CB818FF-E3D7-491B-947B-B3A16FE8C80F%40gmail.com.
--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CANiY96YW_Cs7f5wvKS92CDsNsNu4TQ9nrzYWOS%2BS1J5d%3D3XKcA%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/ED91500D-E904-4E81-8C05-CAF2CC514E70%40gmail.com.
--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CANiY96ZHGKbxUVYzqz1us%3DU-G8UUBXBwiD3Tua1XHBNdMWByfg%40mail.gmail.com.
GIT_SSH_COMMAND="ssh -vvv" git clone ssh://g...@bitbucket.restofdomain.com targetTo view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/B731F2E2-097D-44A5-BDCB-95B70FF82629%40gmail.com.
On 18 Jan 2022, at 12:20 AM, Chad Wilson <ch...@thoughtworks.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CAA1RwH8SYyHxojpCcEN%2BfihER1qbSUa94MSV-JK2TjHOiCt64g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/F01ECD81-1233-4493-B78C-7131693BE8B2%40gmail.com.