Closed prashantvidja closed 8 months ago
Hi @prashantvidja,
We've run a couple tests from our side, and things seem to work as expected:
{"dst_host": "192.168.14.33", "dst_port": 22, "local_time": "2023-10-30 13:16:15.393892", "local_time_adjusted": "2023-10-30 15:16:15.395601", "logdata": {"LOCALVERSION": "SSH-2.0-OpenSSH_5.1p1 Debian-4", "PASSWORD": "testingpassword", "REMOTEVERSION": "SSH-2.0-OpenSSH_for_Windows_9.2", "USERNAME": "testinguser"}, "logtype": 4002, "node_id": "opencanary-1", "src_host": "192.168.14.20", "src_port": 49880, "utc_time": "2023-10-30 13:16:15.395084"}
We tested this from powershell's ssh on Windows 8 and Windows 11.
Are you able to confirm which port ssh is using? From my local testing, I was using the default of 22:
$ grep ssh /etc/opencanaryd/opencanary.conf
"ssh.enabled": true,
"ssh.port": 22,
"ssh.version": "SSH-2.0-OpenSSH_5.1p1 Debian-4",
Additionally, if you add the -v
flag to the ssh command, we should be able to get some more details about why the connection is failing.
Hi @nickrohrbs
Thanks for your reply.
Okay, it may be possible to have some SSH client configuration issues but I'm not sure. I am sure that I am using the default 22 port.
Check the below output after enabling verbose on my host machine.
Also, I have tested with another machine test windows server in the same network.
Hi @prashantvidja,
Could you confirm that enabling other services work as expected when connecting from the Windows machines? You could enable http
and maybe a tcpbanner
and confirm that you can successfully connect to remove some unknowns from the equation. It'll help us narrow down the cause.
Nick
Thanks @nickrohrbs. It was not a bug. There is some problem with my VirtualBox network driver. I fixed it now.
Describe the bug The service working fine as usual, But when I test it using the Windows Powershell command line or Putty I am not able to connect SSH. Getting connection timed out error. But when I connect it with another Linux server it is working fine.
To Reproduce Steps to reproduce the behavior:
Expected behavior It should show connection via ssh. User doesn't log in that's fine at least it should recognize it.
Screenshots![image](https://github.com/thinkst/opencanary/assets/26060662/2a0a1906-dd82-4f62-8948-353c5c97d659)
Testing environment
VM information