Closed jonatanaxe closed 1 year ago
Hi @jonatanaxe,
The issue seems to not come from the ssh key and/or ssh_config. But from your whitelisting process.
I don't get why you're using ( haythem/public-ip@v1.3) ? As you seem to already be running on a self-hosted runner? (i.e runs-on: self-hosted
).
Just whitelist incoming traffic from your runner ip in your deployment instance security group rules? The haythem action seems to be for people using github public / shared runners. BTW, we strongly recommend using self-hosted runners, for obvious security reasons. But of course not everybody can't afford that.
Hi seyuf
Thanks for the quick response
I used haythem/public-ip@v1.3* because in the beginning we were trying to use github's runner more by changing the ip all the time, it didn't work out very well.
But we were running runner on the same magento server so it was giving error in ssh lol
Now we put the runner on another server and it worked :D
Thank you for your help @seyuf
^^, it can happen to the best of us. Also, for posterity, all your action does is getting the IP and set it as server env. Which is pretty trivial and can be done with a simple curl ifconfig.me. For those, using public/shared runners and are on aws. What this guy does is a lot sexier, if one want to automate the whitelisting process.
Anyway, im closing this then.
^^, it can happen to the best of us. Also, for posterity, all your action does is getting the IP and set it as server env. Which is pretty trivial and can be done with a simple curl ifconfig.me. For those, using public/shared runners and are on aws. What this guy does is a lot sexier, if one want to automate the whitelisting process.
Anyway, im closing this then.
Very cool, now I understand better lol
ssh: connect to host port 22: Connection timed out
Hey guys I'm having an error with the ssh connection, has anyone else had this problem, I've generated the ssh keys several times, my server is from aws