login about faq

How to enable SSH Tectia Server to use limits.conf on Red Hat Linux?

asked Dec 17 '10 at 13:54

SSH%20KB's gravatar image

SSH KB ♦
509249246237


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.

link

answered Dec 17 '10 at 13:54

SSH%20KB's gravatar image

SSH KB ♦
509249246237

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

/etc/security/limits.conf

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.

Thanks.

link

answered Mar 10 '11 at 15:53

Moorthi's gravatar image

Moorthi
1

Hi, can you please enter this a separate question?

(Mar 11 '11 at 07:15) Roman ♦♦ Roman's gravatar image

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.

Thanks.

link
This answer is marked "community wiki".

answered Sep 23 '14 at 13:41

HansSSH's gravatar image

HansSSH
1

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×69

Asked: Dec 17 '10 at 13:54

Seen: 11,494 times

Last updated: Sep 23 '14 at 13:41

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.