SSH Handshake Failed

I’ve just signed up to Fly, trying to deploy a simple rack app.
I’ve run fly launch and my app is running. I need to run a DB migration so when I try and fly ssh console I get the following:

Connecting to [redacted]... complete
Error error connecting to SSH server: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

os: macOS Ventura 13.0.1
Fly version: fly v0.0.431 darwin/amd64 Commit: eeef66af BuildDate: 2022-11-13T17:11:38Z

Should be resolved now.

Looking into a more permanent solution.

1 Like

Just deployed an app following these instructions and hit the same error.

You don’t seem to have any apps. Are you sure you followed the instructions?

The app is under a work account.

Oh I see.

Can you give us the organization name / slug or an app name where this broke for you?

If you could also provide what error you got, that could help. I can try to find the affected org / app / server with that information.

Thanks, the organization slug is alive-tech. The command appears to have started working now without me changing anything. Here’s what I see:

$ fly deploy
[…]
--> v1 deployed successfully
$ fly ssh console
Connecting to fdaa:0:ddee:a7b:a45b:a846:fc38:2... complete
Error error connecting to SSH server: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
$ fly ssh --help
[…]
$ fly ssh issue --help
[…]
$ fly --verbose ssh console
Connecting to fdaa:0:ddee:a7b:a45b:a846:fc38:2... complete
# 
$ fly ssh console
Connecting to fdaa:0:ddee:a7b:a45b:a846:fc38:2... complete
#