How Can I Open More Than 5 Shell Windows
When I try to ssh login to my UNIX host, I get an error or my session is immediately closed.
My default CentOS 7.x host has a configuration that only allows me to open 5 terminal windows. This is way to few. How can I fix this?
To fix this, simply edit the limits.conf file and change maxlogins value.
sudo vi /etc/security/limits.conf
# Change 5 to 10 or a larger value
* hard maxlogins 5
After this change I can open up to 10 shells including putty sessions and ssh sessions from other hosts.