Can't SSH into my build I am getting Connection Refused

ssh
keys

#1

I am trying to ssh into my build but I keep getting a “Connection Refused” error.

I have also verified my github keys as stated in the Docs

But I and getting the “Connection Refused” error still.

This is what I have tried to do and the errors received:

12:12:17 /$ ssh -i /Users/[user]/.ssh/id_rsa.pub -p 64624 ubuntu@54.213.240.220

ssh: connect to host 54.213.240.220 port 64624: Connection refused

12:12:25 /$ ssh -i /Users/[user]/.ssh/id_rsa -p 64624 ubuntu@54.213.240.220

ssh: connect to host 54.213.240.220 port 64624: Connection refused

12:12:31 /$ ssh -i /Users/[user]/.ssh/id_rsa -p 64624 ubuntu@54.213.240.220 -L 1234:localhost:3000

ssh: connect to host 54.213.240.220 port 64624: Connection refused

12:12:41 /$ ssh -i /Users[user]/.ssh/id_rsa.pub -p 64624 ubuntu@54.213.240.220 -L 1234:localhost:3000

ssh: connect to host 54.213.240.220 port 64624: Connection refused

Does anyone know how to resolve this?


#2

Did you ever resolve this? I am getting the same error


#3

Hi, I’m having the same issue. I tried following the SSH troubleshooting tips, but as far as I can tell, there’s no problem with my ssh configuration.

I can verify that my ssh key works with github:

$ ssh -i /Users/bergs/.ssh/id_rsa git@github.com
PTY allocation request failed on channel 0
Hi stuarteberg! You've successfully authenticated, but GitHub does not provide shell access.
Connection to github.com closed.

But I can’t use the same key to log into the CI machine:

$ ssh -vvv -i /Users/bergs/.ssh/id_rsa -p 64602 ubuntu@23.20.225.205
OpenSSH_7.4p1, LibreSSL 2.5.0
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: resolving "23.20.225.205" port 64602
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 23.20.225.205 [23.20.225.205] port 64602.
debug1: connect to address 23.20.225.205 port 64602: Connection refused
ssh: connect to host 23.20.225.205 port 64602: Connection refused

Any ideas?

BTW: This is the project I’m trying to debug:
https://circleci.com/gh/janelia-flyem/diced


#4

I’m experiencing the same issue. :frowning: Any progress on this?


#5

SSH has worked fine for me in the past. I’ve probably used it a once or twice a month for the last six months on failed Circle 2.0 builds. Are you waiting for your build to complete before attempting the connection?


#6

It seems like the connection is internally blocked by the admins. Trying to connect from home works :slight_smile:


#7