I have a problem with ssh connection to my private repos on github using debug mode. During normal run there is no problem. When I switch to debug mode there is ‘Permission denied’. I think ssh should be setup by default. Am I right?
In before_install section I have pip command installing package directly from github:
When I use travis_run_before_install command connection to travis machine is broken instantly, after pip command fails, and debug job is finished - failed. No chance to reconnect to machine. Is it desired behaviour, when command fails in that section?
No. I can connect through ssh to travis machine, but when I want access private github repository from travis machine using ssh there is no accesss to it
Ah, I understand what you are asking now. My apologies.
During the debug build, we remove the GitHub credentials we use to clone private repositories for security reasons. So, if you need to clone private repositories, you will have to set it up again.
Well, we could argue that this (terminating the debug connection when a command fails at certain places) is not desirable. That’s probably a different topic.
Hi BanzaiMan - I know this topic has been marked closed, but I I’m experiencing the same issue (being unable to clone a private repo during a debug build) and I would like to ask 2 questions:
what did you meant by ‘if you need to clone private repositories, you will have to set it up again.’ - is there an ssh-agent running in the tmate session? Do you mean that we should add our ssh key to that?
If you have removed Github credentials for security reasons, can I ask why? What was the risk and what would I be exposed to if I was to clone a private repo with my private credentials inside the debug session? I have to be clear that I understand the implication of this and any risks so I can make a call to accept them or not.