LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
LinkBack Search this Thread
Old 11-13-2012, 02:22 PM   #1
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA
Distribution: Debian/ Fedora
Posts: 409

Rep: Reputation: 33
HowTo limit sftp connection to one per user


Hi group,

I need to limit SFTP users to one per ID. I have modified my /etc/ssh/user_config with this line:
Code:
MaxSessions 1
MaxStartups 1
I start sftp with this command:
Code:
sudo /usr/sbin/sshd -f /etc/ssh/user_config
But that did not work. It still allows me to login more than one time.

What am I missing?? I am running Fedora 13 if that matters.

Thanks for your time.

Last edited by MrUmunhum; 11-13-2012 at 02:53 PM.
 
Old 11-14-2012, 07:36 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
if you read the manpage carefully, neither of those options are at all relevant to your requirements.

Presuming that these users are remote sftp users only, and don't need any other form of system login as well, set it outside of sftp by editing the hard maxlogins values in /etc/security/limits.conf
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SFTP connection with user and passwd on the header MarcosPauloBR Programming 6 03-27-2011 08:03 PM
[SOLVED] SFTP with user nectand passwd set on the header of connection MarcosPauloBR Linux - Newbie 1 03-25-2011 01:55 PM
SQUID - connection limit per user not per IP adress iksik Linux - Software 3 03-10-2010 09:52 AM
how to create sftp user only in red hat 4 not ftp user ..only sftp user princeu28 Linux - Newbie 1 10-14-2008 08:10 AM


All times are GMT -5. The time now is 03:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration