How many session that Linux can run at once?

Hi everyone,

I have questions regarding to the multi sessions in Linux.
As I know, we can open multi session on a single Linux system. For example: we can open more than 2 putty sessions to a single Linux server.
Is there any limitation for the number of session that we can open at once?
Or we can open as much as we want?
And how can we open and do more than a job at a time in a Linux server?

Thank you in advance.
Best regards,

1 Like

If you want to perform a lot of jobs and/or commands simultaneously, you can use “screen” software:

About the limit, Linux itself doesn’t define a limit be default, but you can set a limit in “/etc/ssh/sshd_config” file:

root@server [~]# grep -i 'maxsess' /etc/ssh/sshd_config
#MaxSessions 10

You can remove the hash and define the number of sessions as needed then restart ssh:

/etc/init.d/sshd restart