Skip to content

Authless SSH seems not working #1756

Description

@zkutasi

Describe the bug

I see authless SSH check is possible (https://github.com/TwiN/gatus#monitoring-an-endpoint-using-ssh), so I configured one for all of my hosts.

- name: ssh-pidash
            group: pidash
            url: "ssh://192.168.31.235:22"
            interval: 60s
            ssh:
              username: ""
              password: ""
              private-key: ""
              authenticate: false
            conditions:
              - "[CONNECTED] == true"
              - "[STATUS] == 0"

In Gatus, I see the checker is all green:

Image

However, this device does not answer to SSH (though it is online, I need to investigate why):

[21:27:58] ✓ 0 ❯ nc 192.168.31.235 22
Ncat: No route to host.
[21:34:09] ✗ 1 ❯ ssh 192.168.31.235
ssh: connect to host 192.168.31.235 port 22: No route to host

What do you see?

Gatus sees the authless SSH as Passing, however my tests show SSH is down. Termix cannot connect (this is how I noticed the issue)

What do you expect to see?

Gatus authless SSH test shall Fail, as the port seems not to be open.

List the steps that must be taken to reproduce this issue

I have no idea what is the implementation behind the authless SSH, but the issue that brought this feature in (#723), mentions this nc command above.

Version

5.36.0 via truecharts

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions