Ssh connections stopped working with v13?

Hi guys,

I have a basic pipeline, it copies php files to a server using lftp, then executes a php script on the server using sshpass. This worked fine up until V13, but since that update, the lftp upload succeeds, but the sshpass connection doesn’t work anymore. It’s as if the network isn’t allowing ssh connections (on a custom high port) and I get a “no route to host” error. I can ssh to this host just fine from my machine and the pipeline does succeed if I run it locally using the gitlab-runner command.

Are there new network restrictions in the shared runners starting with v13 or something?

Any help is appreciated, thanks!

Tested the same host with different ssh ports and it works fine when I set a low port (like standard 22). Opened an issue about the high ports: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/26573

2 Likes