[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Remote IP (and hot to server-side disconnect)
[Thread Prev] | [Thread Next]
- Subject: Remote IP (and hot to server-side disconnect)
- From: keneto@xxxxxxxxxxxxx
- Reply-to: libssh@xxxxxxxxxx
- Date: Sun, 25 May 2025 16:59:53 -0400
- To: libssh@xxxxxxxxxx
Hi. Seeking help to find the remote IP
Problem statement: I set up my server using LibSSH & callback method. Within the first ten minutes of its life, it had suffered over 2k hackers trying to dictionary-guess the admin credentials (Joke's on them- there aren't any!)
I need to start catching IPs and put repeat offenders on timeouts. Thedocumentation is unclear how to do this. Rc := ssh_bind_accept(SSHBind, Session); if Rc = SSH_OK then if (GetIPAdress(???) in naughty_user_list then disconnect(Session)
Since this is using callbacks I don't see any way to convert the session into a socket.
Re: Remote IP (and hot to server-side disconnect) | keneto@xxxxxxxxxxxxx |