How to enable SSH Tectia Server to use limits.conf on Red Hat Linux?
asked Dec 17 '10 at 13:54
SSH KB ♦
Tectia Server does not read the /etc/security/limits.conf file directly, but it is supported through PAM (Pluggable Authentication Methods). The user specific limits setting is supported in the pam_limits module and this module needs to be configured for the ssh-server-g3 service in the PAM configuration.
If authentication methods other than keyboard-interactive/PAM are used, the server configuration file needs to have pam-calls-with-commands attribute enabled.
Note that the limit settings through PAM are done before user shell is initialized, so it is possible that the limits are overridden in shell initialization files such as /etc/profile.
answered Dec 17 '10 at 13:54
SSH KB ♦
Hi, We are running " SSH Tectia Server 6.0.5 on i686-pc-linux-gnu" having problem increasing the ulimit for the jboss user. when the user ssh to box, still ulimit -a is 1024. I have the pam_limits.so added in the /etc/pam.d/ssh-server-g3
jboss soft nofile 65000
jboss hard nofile 65000
The work around is to add the ulimit value in the /etc/ssh2/sshd2_custom_env and /etc/sysconfig/xinetd. Restart the ssh and xinetd daemon.
Any help appreciated.
answered Mar 10 '11 at 15:53
Hi, we also face the problem to change ulimit parameter in Redhart(in the configure file: /etc/security/limits.conf). As Tectia replaced OpenSSH on port 22. When change ulimit by Tectia, it rollback after restart. But when use su or local connect it works fine. Could you provide detail command. Sorry, as we only use SFTP function of Tectia, so don't know how to operate based on above advice.
This answer is marked "community wiki".
answered Sep 23 '14 at 13:41