Checking concurrent SSHD connections

Hi Guys

i am facing an issue when SSH connections are overflowing on my server, i get connections from thousands of servers, out of which few does not close them after sending a file.

i want to pull some information about concurrent ssh connections

i used "netstat -an | grep 22"

i need to know what time that particular connection was made with my server. Can someone pls suggest me if i can get that information

Second thing is, can i enable the log somewhere which can gather all these information, so that i can check the results for couple of days. If yes, what should i be doing for that,

Thanks in advance
:b:

What's your system? Logins are probably being logged already. Look for lines with 'sshd' in them in /var/log/messages.

combination of command "w" and "last" will give you answer.

i am sorry dint understnad what "w" and last meant

May i request you to elaborate pls. thx

command "w" and command "last". ---> type it on your console it is a command.