LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-07-2013, 02:24 PM   #1
AllenKll
LQ Newbie
 
Registered: Mar 2012
Posts: 21

Rep: Reputation: Disabled
SSH incoming connections ignored after 2000 concurrent sessions


All,
I am using a fresh install of Slackware 14. I have the ssh daemon running.
I am attempting a test of a full scale system that will cause a large number of SSH connections to open on the server at the same time. To that end, I wrote a script that will create 10,000 ssh sessions, however, after about 2000 sessions no more connections over ssh are possible.

I am connecting via ssh with the following command:
Code:
ssh -TNn ssh_guy@testServer &
I have certificates set up so that passwords are unnecessary.

Does anyone have any idea why after 1999 successful connections I get this error:
Code:
ssh: connect to host testServer port 22: Connection timed out
Tailing the /var/log/messages file provides no further evidence as to why these connections are being ignored. It's full of lines like this:
Code:
Jun  7 18:54:50 sshtest sshd[3661]: Accepted publickey for ssh_guy from 192.168.13.65 port 64491 ssh2
There seems to be no indication of rejection or ignoring of further connections. There is plenty of ram and cpu available, so it's not a resource issue, as far as I can tell.

Any ideas of where I can begin to look for this artificial limit?

thanks,
-Allen
 
Old 06-07-2013, 03:49 PM   #2
AllenKll
LQ Newbie
 
Registered: Mar 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
found the issue

The 2000 connection limit appears to be a problem with my client and not my server. I set up a second client (both running ubuntu 12) to start hitting the server with connections, and was able to link up another 1267 connections.
Then I set up a third client and ran it up to 6200 connections when my server ran out of memory.

Not sure why my clients were limiting, but at least I found a way around it.
 
1 members found this post helpful.
  


Reply

Tags
connection refused, limit, ssh, sshd



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sftp Maxium Concurrent sessions tmcnealy576 Linux - Server 2 11-01-2012 07:09 AM
Ubuntu Server Does Not Accept Incoming Network Connections Like SSH Subject16 Linux - Networking 3 02-25-2011 03:37 PM
Max concurrent ssh connections limit vbarakam@yahoo.com Linux - Newbie 1 07-13-2009 12:19 AM
Problem with incoming ssh connections and PPTP apanloco Linux - Networking 6 06-05-2009 07:45 PM
Can't start concurrent X sessions with different users. rickh Debian 3 12-26-2005 08:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration