Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have some users, who connect to my server through the ssh for port forwarding and ssh tunneling, but there is a problem: I cannot limit their concurrent logins, because they have no session and cannot access to any shell. In this case, PAM and Limits file, wont help.

share|improve this question

According to OpenSSH FAQ you could use PAM for ssh authentication.

share|improve this answer
"Use Pam" option on ssh configuration file is enabled, But It won't help cause in port forwarding mode, i disabled their access to Shell, and Pam's do nothing. – Odysseus Jun 8 '11 at 5:19
Do you have anything in pam configuration for ssh (/etc/pam.d/sshd)? – AlexD Jun 8 '11 at 15:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.