droberson / ssh-honeypot

Fake sshd that logs ip addresses, usernames, and passwords.
MIT License
627 stars 242 forks source link

FATAL: ssh_bind_listen(): #12

Closed s0i37 closed 3 years ago

s0i37 commented 4 years ago
~/src/ssh-honeypot(master) » sudo bin/ssh-honeypot -p 22 -u nobody                                          
[Tue May 19 14:50:10 2020] ssh-honeypot 0.1.0 by Daniel Roberson started on port 22. PID 1073190
[Tue May 19 14:50:10 2020] FATAL: ssh_bind_listen(): 
--------------------------------------------------------------------------------------------------------------------------------
~/src/ssh-honeypot(master) » sudo bin/ssh-honeypot -p 2222 -u nobody                                        
[Tue May 19 14:50:13 2020] ssh-honeypot 0.1.0 by Daniel Roberson started on port 2222. PID 1073210
[Tue May 19 14:50:13 2020] FATAL: ssh_bind_listen(): 
--------------------------------------------------------------------------------------------------------------------------------
~/src/ssh-honeypot(master) » sudo bin/ssh-honeypot -p 22222 -u nobody                                       
[Tue May 19 14:50:16 2020] ssh-honeypot 0.1.0 by Daniel Roberson started on port 22222. PID 1073226
[Tue May 19 14:50:16 2020] FATAL: ssh_bind_listen(): 
link89 commented 4 years ago

-r option is required. Check the readme file.

pandalatte commented 4 years ago

Same thing is happening to me.

root@ubuntu:~/tools/ssh-honeypot# ls -la ssh-honeypot.* -rw------- 1 root root 2655 Sep 29 17:58 ssh-honeypot.rsa -rw-r--r-- 1 root root 565 Sep 29 17:58 ssh-honeypot.rsa.pub

root@ubuntu:~/tools/ssh-honeypot# bin/ssh-honeypot -r ./ssh-honeypot.rsa -p 22 -v
[Tue Sep 29 18:09:41 2020] ssh-honeypot 0.1.0 by Daniel Roberson started on port 22. PID 295712 [Tue Sep 29 18:09:41 2020] FATAL: ssh_bind_listen():

root@ubuntu:~/tools/ssh-honeypot# bin/ssh-honeypot -r ./ssh-honeypot.rsa -p 2222 -v [Tue Sep 29 18:09:47 2020] ssh-honeypot 0.1.0 by Daniel Roberson started on port 2222. PID 295715 [Tue Sep 29 18:09:47 2020] FATAL: ssh_bind_listen():

root@ubuntu:~/tools/ssh-honeypot# bin/ssh-honeypot -r ./ssh-honeypot.rsa -p 22222 -v [Tue Sep 29 18:09:50 2020] ssh-honeypot 0.1.0 by Daniel Roberson started on port 22222. PID 295718 [Tue Sep 29 18:09:50 2020] FATAL: ssh_bind_listen():

trentwiles commented 4 years ago

Getting the same error here.

SuperSchelli commented 4 years ago

happens to me as well, i am using -r option and it still happens

s0i37 commented 3 years ago

Indeed:

ssh-keygen -t rsa -f ./ssh-honeypot.rsa
./bin/ssh-honeypot -r ssh-honeypot.rsa -p 2222

It works! 👍

PillMagic commented 3 years ago

U need to be root). Ports behind 1024 is needed to be launched from root.