Results 1 to 3 of 3

Thread: How do I limit concurrent sftp / port forwarding logins?

Hybrid View

  1. #1
    Join Date
    Apr 2012
    Beans
    1

    Arrow How do I limit concurrent sftp / port forwarding logins?

    I have ssh set up so my users can only access sftp and port forwarding, how can I limit the number of concurrent logins on a per user basis?

    In my sshd_config I have UsePAM set to yes and in /etc/security/limits.conf I have:

    username - maxlogins 1

    I also tried:

    username hard maxlogins 1

    Neither of these works and the users can still log in multiple times.

  2. #2
    Join Date
    Nov 2012
    Beans
    1

    Re: How do I limit concurrent sftp / port forwarding logins?

    Hi

    Have you found a solution yet? If not, let me know

  3. #3
    Join Date
    Oct 2007
    Beans
    338

    Re: How do I limit concurrent sftp / port forwarding logins?

    heres a good reference for ssh also discusses what your attempting:
    https://help.ubuntu.com/community/SS...SH/Configuring

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •