# Cannot ssh console

**URL:** <https://community.fly.io/t/cannot-ssh-console/6702>\
**Category:** General\
**Created:** [August 29, 2022, 8:56am UTC](https://community.fly.io/t/cannot-ssh-console/6702 "2022-08-29T08:56:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wiznaibus](https://avatars.discourse-cdn.com/v4/letter/w/e9c0ed/32.png) [@wiznaibus](https://community.fly.io/u/wiznaibus)\
**Post date:** [August 29, 2022, 8:56am UTC](https://community.fly.io/t/cannot-ssh-console/6702/1 "2022-08-29T08:56:35Z")

</div>

This was working fine until about 20 minutes ago.

```auto
{11:41} fly ssh console -a app-name
Connecting to top1.nearest.of.app-name.internal... complete
Error error connecting to SSH server: connect tcp: operation timed out

{11:48} fly ssh console -a app-name
Connecting to top1.nearest.of.app-name.internal... complete
Error error connecting to SSH server: connect tcp: operation timed out

{11:51} fly ssh console -a app-name
Connecting to top1.nearest.of.app-name.internal... complete
Error error connecting to SSH server: connect tcp: operation timed out

```

---

<div class="post-metadata">

**Author:** ![JackyLe](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jackyle/32/5070_2.png) [@JackyLe](https://community.fly.io/u/JackyLe)\
**Post date:** [August 29, 2022, 9:02am UTC](https://community.fly.io/t/cannot-ssh-console/6702/2 "2022-08-29T09:02:30Z")

</div>

Add the -s flag. Then choose the last one.

> fly ssh console -a app-name -s

---

<div class="post-metadata">

**Author:** ![Yaeger](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/yaeger/32/44383_2.png) [@Yaeger](https://community.fly.io/u/Yaeger)\
**Post date:** [August 29, 2022, 9:26am UTC](https://community.fly.io/t/cannot-ssh-console/6702/3 "2022-08-29T09:26:16Z")

</div>

Yea I’ve ran into this issue as well.

I think it’s trying to connect to an old VM. Sometimes when I use `-s`, it’s showing multiple VMs of which some don’t even show in `fly status` anymore.

---

<div class="post-metadata">

**Author:** ![ignoramous](https://avatars.discourse-cdn.com/v4/letter/i/a9adbd/32.png) [@ignoramous](https://community.fly.io/u/ignoramous)\
**Post date:** [August 29, 2022, 9:35pm UTC](https://community.fly.io/t/cannot-ssh-console/6702/4 "2022-08-29T21:35:44Z")

</div>

Another way is to exec

`flyctl ips private -a <appname>` and

`flyctl ssh console "[ipv6]"` straight to it.

Ref: [fly ssh console fails with `Error host unavailable: host was not found in DNS` - #5 by ignoramous](https://community.fly.io/t/fly-ssh-console-fails-with-error-host-unavailable-host-was-not-found-in-dns/5781/5)
