search for: max_sessions

Displaying 20 results from an estimated 23 matches for "max_sessions".

2004 Jun 02
2
More than 10 open sessions
...e have problems, because of very high connection set-ups in extremely short time intervals, more than 10 open sessions. The connection set-up is partly declined with the error message: ssh_exchange_identification: Connection closed by remote host I think, our Problem is the Parameter "#define MAX_SESSIONS" in session.c. Have you scheduled to integrate the Parameter "MAX_SESSIONS" as a configuration Parameter in sshd_config? When not, is it possible to change the parameter "#define MAX_SESSIONS" in session.c from 10 to 30 or 50, without getting other Problems? Best regards...
2005 Sep 23
7
[Bug 1090] Increase MAX_SESSIONS?
http://bugzilla.mindrot.org/show_bug.cgi?id=1090 Summary: Increase MAX_SESSIONS? Product: Portable OpenSSH Version: -current Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: sshd AssignedTo: bitbucket at mindrot.org ReportedBy: cjwatson at deb...
2006 Nov 07
0
[Bug 1090] Increase MAX_SESSIONS?
http://bugzilla.mindrot.org/show_bug.cgi?id=1090 senthilkumar_sen at hotpop.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |senthilkumar_sen at hotpop.com ------- Comment #6 from senthilkumar_sen at hotpop.com 2006-11-07 23:00 ------- Any
2007 Dec 08
1
MAX_SESSIONS Increase Impact
I'm hoping this is the the right location for this question.... I've been working with some developers that are desiring to use the multiplexing capabilities of OpenSSH, but have hit the default limit of 10. I've seen some discussions of increasing this default limit previously and have noticed that some of the Linux distros have increased the number to 64; I'm curious of the
2008 Apr 24
2
[Bug 1090] Increase MAX_SESSIONS?
https://bugzilla.mindrot.org/show_bug.cgi?id=1090 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bitbucket at mindrot.org |djm at mindrot.org --- Comment #12 from Damien Miller <djm at
2001 Oct 25
2
SIGCHLD race *trivial* patch
...-0400 willian (OpenSSH/i/14_session.c 1.3 644) @@ -1533,18 +1533,18 @@ exit(1); } +static int did_init_sessions = 0; Session * session_new(void) { int i; - static int did_init = 0; - if (!did_init) { + if (!did_init_sessions) { debug("session_new: init"); for(i = 0; i < MAX_SESSIONS; i++) { sessions[i].used = 0; sessions[i].self = i; } - did_init = 1; + did_init_sessions = 1; } for(i = 0; i < MAX_SESSIONS; i++) { Session *s = &sessions[i]; @@ -1622,6 +1622,27 @@ error("session_by_pid: unknown pid %d", pid); session_dump(); return NULL...
2006 Sep 07
12
Multiple (multiplexed) simultaneous ssh connections - Cygwin bug?
...5 new connections concurrently. 2.?????? Using a master connection that is shared, the sshd_config variable MaxStartups has no effect. This is because we are not opening lots of ssh connections, but are opening multiple sessions within a single connection. The parameter that needs to be changed is MAX_SESSIONS, which is hardcoded in sessions.c at 10. Request: add "MAX_SESSIONS" as a configuration parameter in sshd_config. (also, you should mention in INSTALL documentation that by default, compiled binaries are quite a bit larger than usual. Do you use strip -strip-debug? ? Finally, I'm ab...
2016 Jun 02
2
MaxDisplays configuration option
...ptions->x11_forwarding = -1; options->x11_display_offset = -1; + options->max_displays = -1; options->x11_use_localhost = -1; options->permit_tty = -1; options->permit_user_rc = -1; @@ -327,6 +328,8 @@ options->max_authtries = DEFAULT_AUTH_FAIL_MAX; if (options->max_sessions == -1) options->max_sessions = DEFAULT_SESSIONS_MAX; + if (options->max_displays == -1) + options->max_displays = MAX_DISPLAYS; if (options->use_dns == -1) options->use_dns = 0; if (options->client_alive_interval == -1) @@ -429,7 +432,7 @@ sAuthorizedKeysCommand, sAut...
2002 Nov 05
2
[PATCH] Add a chroot_users option to sshd
...************** *** 99,104 **** --- 99,111 ---- /* original command from peer. */ const char *original_command = NULL; + /* option to use filesystem snapshot */ + /* #define DO_SNAPSHOTS */ + #ifdef DO_SNAPSHOTS + /* snapshot name */ + char *snapshot = NULL; + #endif + /* data */ #define MAX_SESSIONS 10 Session sessions[MAX_SESSIONS]; *************** *** 1255,1260 **** --- 1262,1268 ---- const char *shell, *shell0, *hostname = NULL; struct passwd *pw = s->pw; u_int i; + char *idx = NULL; /* remove hostkey from the child's memory */ destroy_sensitive_data(); *********...
2000 May 15
1
AIX authenticate patches
...May 10 16:16:06 2000 @@ -27,6 +27,13 @@ #include "ssh2.h" #include "auth.h" +#ifndef WCOREFLG +#define WCOREFLG 0200 +#endif +#ifndef WCOREDUMP +#define WCOREDUMP(stat) ((stat)&WCOREFLG) +#endif + /* types */ #define TTYSZ 64 @@ -83,6 +90,10 @@ /* data */ #define MAX_SESSIONS 10 Session sessions[MAX_SESSIONS]; +#ifdef WITH_AIXAUTHENTICATE +/* AIX's lastlogin message, set in auth1.c */ +char *aixloginmsg; +#endif /* WITH_AIXAUTHENTICATE */ /* Flags set in auth-rsa from authorized_keys flags. These are set in auth-rsa.c. */ int no_port_forwarding_flag = 0; @@ -6...
2001 Sep 28
1
openssh-2.9.9p2 assumes pid_t, uid_t, etc. are not 'long'
...============ RCS file: session.c,v retrieving revision 2.9.9.2.0.1 retrieving revision 2.9.9.2.0.2 diff -pu -r2.9.9.2.0.1 -r2.9.9.2.0.2 --- session.c 2001/09/28 18:17:11 2.9.9.2.0.1 +++ session.c 2001/09/28 18:37:50 2.9.9.2.0.2 @@ -1539,12 +1539,12 @@ session_dump(void) int i; for(i = 0; i < MAX_SESSIONS; i++) { Session *s = &sessions[i]; - debug("dump: used %d session %d %p channel %d pid %d", + debug("dump: used %d session %d %p channel %d pid %ld", s->used, s->self, s, s->chanid, - s->pid); + (long)s->pid); } }...
2003 Jul 05
0
[PATCH] Replace AIX loginmsg with generic Buffer loginmsg
...:25:48 -0000 1.238 +++ session.c 5 Jul 2003 02:21:49 -0000 @@ -95,6 +95,7 @@ extern u_int utmp_len; extern int startup_pipe; extern void destroy_sensitive_data(void); +extern Buffer loginmsg; /* original command from peer. */ const char *original_command = NULL; @@ -103,10 +104,6 @@ #define MAX_SESSIONS 10 Session sessions[MAX_SESSIONS]; -#ifdef WITH_AIXAUTHENTICATE -char *aixloginmsg; -#endif /* WITH_AIXAUTHENTICATE */ - #ifdef HAVE_LOGIN_CAP login_cap_t *lc; #endif @@ -770,10 +767,13 @@ if (options.use_pam && !is_pam_password_change_required()) print_pam_messages(); #endif /*...
2001 Apr 04
1
compiler warnings about format strings
...ned pid %d, expected %d", - wait_pid, pid); + error("Strange, wait returned pid %ld, expected %ld", + (long)wait_pid, (long)pid); } /* We no longer want our SIGCHLD handler to be called. */ Index: session.c @@ -1545,12 +1545,12 @@ int i; for(i = 0; i < MAX_SESSIONS; i++) { Session *s = &sessions[i]; - debug("dump: used %d session %d %p channel %d pid %d", + debug("dump: used %d session %d %p channel %d pid %ld", s->used, s->self, s, s->chanid, - s->pid); + (long)s->pid); } }...
2002 Nov 20
0
[PATCH #9] Password expiration via /bin/passwd.
...ex: session.c =================================================================== RCS file: /cvs/openssh/session.c,v retrieving revision 1.222 diff -u -r1.222 session.c --- session.c 26 Sep 2002 00:38:50 -0000 1.222 +++ session.c 20 Nov 2002 13:12:16 -0000 @@ -102,10 +102,11 @@ /* data */ #define MAX_SESSIONS 10 Session sessions[MAX_SESSIONS]; +Buffer expire_message; /* "password will expire/has expired" messages */ +Buffer login_message; /* message to be displayed after login */ +int password_change_required = 0; -#ifdef WITH_AIXAUTHENTICATE -char *aixloginmsg; -#endif /* WITH_AIXAUTHENTIC...
2002 Oct 13
1
[PATCH] AIX password expiration
...Index: session.c =================================================================== RCS file: /cvs/openssh/session.c,v retrieving revision 1.222 diff -u -r1.222 session.c --- session.c 26 Sep 2002 00:38:50 -0000 1.222 +++ session.c 13 Oct 2002 11:06:28 -0000 @@ -104,7 +104,10 @@ Session sessions[MAX_SESSIONS]; #ifdef WITH_AIXAUTHENTICATE +int is_aix_password_change_required(void); +void do_aix_change_password(struct passwd *); char *aixloginmsg; +char *aixexpiremsg; #endif /* WITH_AIXAUTHENTICATE */ #ifdef HAVE_LOGIN_CAP @@ -461,6 +464,12 @@ "TTY available"); #endif /* USE_PAM...
2007 Dec 08
6
[Bug 1398] New: slave ssh sessions enter a never-ending blocking state
...riority: P2 Component: ssh AssignedTo: bitbucket at mindrot.org ReportedBy: gregory_shively at fanniemae.com Created an attachment (id=1388) --> (http://bugzilla.mindrot.org/attachment.cgi?id=1388) Patch to close client_fd I've currently looking at increasing the MAX_SESSIONS to increase the number of slave ssh processes to be multiplex where I ran into the default maximum filehandle limit on a test machine (Solaris 8). I've found a similiar set of patches in the cvs repos that is similiar to a dirty patch that I came up with; so I've been implementing the patch...
2008 May 30
1
"ERR sshd: error: no more sessions" issue
...taneous sessions) & once done, it will close the connection gracefully (I believe). The problem is after a few sessions (10) are open & closed, we see "May 29 14:43:11 ERR sshd[534]: error: no more sessions" error. So I checked the source code of openssh & changed the value of MAX_SESSIONS from 10 to 100.in session.c @ line number 132. Things got improved, but now after number of sessions crosses 100, the same error pops up. I enabled the debug mode. Debug messages are at the end of this mail. 1) Please tell me, whether the sessions are getting closed properly? 2) If yes, why it...
2023 Apr 03
2
[EXTERNAL] Fwd: ntlm_auth and freeradius
> I guess we have to look at the conf files then, first these two: Thank you for the config file snippets. I can confirm mine were almost identical, so I've tweaked them so that they are now exactly the same as yours except for the "--require-membership-of=example\authorization_groupname" line in ntlm_auth. Unfortunately it's still erroring out: (7) mschap: Creating
2013 Jan 31
2
OpenSSH NoPty patch
...o parse_flag; + case sStrictModes: intptr = &options->strict_modes; goto parse_flag; @@ -1657,6 +1665,7 @@ copy_set_server_options(ServerOptions *d M_CP_INTOPT(x11_display_offset); M_CP_INTOPT(x11_forwarding); M_CP_INTOPT(x11_use_localhost); + M_CP_INTOPT(no_pty); M_CP_INTOPT(max_sessions); M_CP_INTOPT(max_authtries); M_CP_INTOPT(ip_qos_interactive); @@ -1883,6 +1892,7 @@ dump_config(ServerOptions *o) dump_cfg_fmtint(sPrintLastLog, o->print_lastlog); dump_cfg_fmtint(sX11Forwarding, o->x11_forwarding); dump_cfg_fmtint(sX11UseLocalhost, o->x11_use_localhost); + dump...
2014 Feb 10
0
[PATCH] Basic SCTP support for OpenSSH client and server
...+ case sListenViaSCTP: + intptr = &options->listen_via_sctp; + goto parse_flag; +#endif + case sAddressFamily: intptr = &options->address_family; multistate_ptr = multistate_addressfamily; @@ -1974,6 +2003,9 @@ dump_config(ServerOptions *o) dump_cfg_int(sMaxSessions, o->max_sessions); dump_cfg_int(sClientAliveInterval, o->client_alive_interval); dump_cfg_int(sClientAliveCountMax, o->client_alive_count_max); +#ifdef USE_SCTP + dump_cfg_int(sListenViaSCTP, o->listen_via_sctp); +#endif /* formatted integer arguments */ dump_cfg_fmtint(sPermitRootLogin, o->pe...