-
-
Notifications
You must be signed in to change notification settings - Fork 853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using the back-end pool mode, remote SSH cannot access #1766
Comments
Do you have anything else that's more descriptive in your log files? |
I also have seen this error
|
I Debbuged my error with Chatgpt, no guarantee this is correct:
|
I am also getting this error. I believe it has been said in other issues that SSH object has no attribute client is due to the connection dropping, the reason for that in this case is that Cowrie.cfg
Extract from Logs
|
an acutal nightmare same problem cannot figure it out |
I configured the agent in the pool mode according to the installation and configuration steps in the official document, but used the simulated attacker to pass SSH root@ip Unable to access. The prompt is: connection rejected or connection closed by remote host
I feel that the documentation of the pool is still incomplete.
Here is my contextual information:
Expected behavior
When I use shell mode, everything is normal, but I need a high interaction honeypot. When I use pool mode, remote SSH cannot connect successfully.
Server (please complete the following information):
Linux VM-16-16-ubuntu 5.15.0-40-generic Cowrie and Tango splunk app #43-Ubuntu SMP Wed Jun 15 12:54:21 UTC 2022 x86_ 64 x86_ 64 x86_ 64 GNU/Linux
Python 3.10.4 (main, Apr 2 2022, 09:04:19) [GCC 11.2.0] on linux
cowrie:
cowrie 2.3.0
Profile:
cowrie.cfg
[honeypot]
hostname = webserver6
interactive_ timeout = 1800
authentication_ timeout = 0
backend = proxy
auth_ class = UserDB
[backend_pool]
pool_ only = false
recycle_ period = 1500
listen_ endpoints = tcp:6415:interface=127.0.0.1
guest_ ssh_ port = 22
guest_ telnet_ port = 23
guest_ image_ path = /home/cowrie/cowrie-imgs/ubuntu18.04-minimal.qcow2
guest_ hypervisor = qemu
guest_ memory = 512
guest_ qemu_ machine = pc-q35-bionic
use_ nat = true
nat_ public_ ip = 192.168.1.40
[proxy]
backend = pool
pool_ max_ vms = 2
pool_ vm_ unused_ timeout = 600
pool_ share_ guests = false
pool = local
backend_ user = root
backend_ pass = root
[shell]
ssh_ version = OpenSSH_ 7.9p1, OpenSSL 1.1.1a 20 Nov 2018
[ssh]
enabled = true
version = SSH-2.0-OpenSSH_ 6.0p1 Debian-4+deb7u2
listen_ endpoints = tcp:2222:interface=0.0.0.0
sftp_ enabled = true
forward_ redirect = false
forward_ tunnel = false
[telnet]
enabled = true
listen_ endpoints = tcp:2223:interface=0.0.0.0
any more:
in log file :
builtins.AttributeError: 'SSH' object has no attribute 'client'
The text was updated successfully, but these errors were encountered: