Telnet and ssh doesn't show the same limits when PAM limits.conf is empty.
Issue
-
When login through ssh or telnet, the limits are not the same (not limit is defined for the user test in limits.conf file):
For telnet:
[root@rhel610 ~]# telnet 127.0.0.1 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Red Hat Enterprise Linux Server release 6.10 (Santiago) Kernel 2.6.32-754.el6.x86_64 on an x86_64 rhel610 login: test Password: Last login: Fri Oct 18 15:28:06 from localhost [test@rhel610 ~]$ [test@rhel610 ~]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.10 (Santiago) [test@rhel610-storage ~]$ ulimit -n 4096
For ssh:
[root@rhel610 ~]# ssh test@127.0.0.1 test@127.0.0.1's password: Last login: Fri Oct 18 15:27:07 2019 from localhost [test@rhel610-storage ~]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.10 (Santiago) [test@rhel610-storage ~]$ ulimit -n 1024
Environment
- Red Hat Enterprise Linux 6
- sshd
- telnet
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.