We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfd38f0 commit e22ce50Copy full SHA for e22ce50
1 file changed
src/ssh-honeypot.c
@@ -606,7 +606,11 @@ int main (int argc, char *argv[]) {
606
port,
607
getpid());
608
609
+ // https://github.com/droberson/ssh-honeypot/issues/21
610
session = ssh_new ();
611
+ long timeout = 5;
612
+ ssh_options_set(session, SSH_OPTIONS_TIMEOUT, (void *)&timeout);
613
+
614
sshbind = ssh_bind_new ();
615
616
ssh_bind_options_set (sshbind, SSH_BIND_OPTIONS_BINDADDR, bindaddr);
0 commit comments