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. The
documentation 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.