Cant connect to job using ssh

Hey there. I’m having some trouble with flaky tests on a node-js job I have configured with circle-ci. I’m trying to ssh into the job so that I can run tests manually and try to debug (the flaky tests are fine in local env). Once i re run job with ssh and the Wait for SSH session step turns green I’m getting Connection refused using the ssh -p command that this step suggests. Using -v with ssh hangs a bit on Connecting to ... and then it drops with Connection timed out.

I should mention that the terminal I try this in is used over VPN (its my office ubuntu machine).

Any idea why this is happening?

Actually the wrong ssh key was used so once i added -i and path to right ssh it worked.

1 Like

Thanks for posting the solution!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.