This message was deleted.
# general
a
This message was deleted.
w
No, i did never connect over SSH with any of the machines as i created them using Terraform.
But i did add the Fleet examples repository and that one worked without issues. It is only when i try to add a private repository
h
Yeah if you tried to add the private repo then you'll need the ssh key i guess.
w
You mean the deploy key?
h
Yeah
w
Yes, that is the one i have already added in step 1 to 3 in my original message
It also does work locally but not after i add it to Rancher, i add it using "read from file"
h
Your process of setting up the repository in rancher seems to be fine. Now, the error message
ssh: connect to host <http://github.com|github.com> port 22: Connection timed out
points towards a network issue instead of an authentication issue. This error often occurs when the host machine or your k8s nodes are unable to connect to github on port 22 due to firewall rules or network policies.
You can check if your k8s nodes have network access to github. From one of the nodes, try to manually clone the repository using the ssh protocol to see if it's a network issue.
git clone git@github.com:username/repository.git
If this fails with the same error, it means your nodes are unable to reach github, and you need to adjust your network settings or firewall rules to allow this.