LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-23-2010, 05:22 AM   #1
ssanwar80
LQ Newbie
 
Registered: Feb 2010
Posts: 4

Rep: Reputation: 0
Thumbs down SSH user login to linux system


Hi,

i want to set the restrict users login to linux system via ssh to 1. I changed the /etc/ssh/sshd_config file maxstartups to 1, it also not working. Any idea where to do the changes.

Thanks.
 
Old 03-23-2010, 05:30 AM   #2
troop
Member
 
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 96
maxstartups affects max № of unauthenticated attemps
Code:
echo "login hard maxlogins 1" >> /etc/security/limits.conf

Last edited by troop; 03-23-2010 at 05:34 AM.
 
Old 03-23-2010, 05:47 AM   #3
ssanwar80
LQ Newbie
 
Registered: Feb 2010
Posts: 4

Original Poster
Rep: Reputation: 0
still not working
 
Old 03-23-2010, 05:54 AM   #4
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Bangalore, India
Distribution: Linux Mint 13
Posts: 590

Rep: Reputation: 64
Quote:
Originally Posted by ssanwar80 View Post
Hi,

i want to set the restrict users login to linux system via ssh to 1. I changed the /etc/ssh/sshd_config file maxstartups to 1, it also not working. Any idea where to do the changes.

Thanks.
Open the file /etc/ssh/sshd_config
Search for the line:
Quote:
#MaxStartups 10
MaxSessions=1
Remove the # from the front and reduce the value to 1, then Restart the service.

Last edited by Sayan Acharjee; 03-23-2010 at 06:04 AM.
 
Old 03-23-2010, 06:18 AM   #5
ssanwar80
LQ Newbie
 
Registered: Feb 2010
Posts: 4

Original Poster
Rep: Reputation: 0
HI ,

I changed the value of maxstartups 1 . still i can able to login to server .
 
Old 03-23-2010, 06:22 AM   #6
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Bangalore, India
Distribution: Linux Mint 13
Posts: 590

Rep: Reputation: 64
Quote:
Originally Posted by ssanwar80 View Post
HI ,

I changed the value of maxstartups 1 . still i can able to login to server .
Try putting Maxsessions = 1 or MaxSessions 1
and then restart the service, I'm not sure which one will work.
Give it a try, and let me know the results.
 
  


Reply

Tags
enterprise, linux, redhat


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH root login from different user Seregwethrin Linux - Software 4 05-21-2009 02:54 PM
RHEL 5 SSH Login with AD User vicjalan Linux - Enterprise 2 09-12-2008 11:22 AM
SSH - cannot login as 1 particular user pnellesen Linux - Networking 7 11-24-2006 11:25 PM
ssh login without password for only one user zhjim Linux - Server 4 11-21-2006 04:31 PM
HELP me on SSH User login manya Linux - Security 1 05-03-2004 03:56 PM


All times are GMT -5. The time now is 02:09 PM.

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