LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SSH user login to linux system (https://www.linuxquestions.org/questions/linux-newbie-8/ssh-user-login-to-linux-system-797248/)

ssanwar80 03-23-2010 05:22 AM

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.

troop 03-23-2010 05:30 AM

maxstartups affects max № of unauthenticated attemps
Code:

echo "login hard maxlogins 1" >> /etc/security/limits.conf

ssanwar80 03-23-2010 05:47 AM

still not working

Sayan Acharjee 03-23-2010 05:54 AM

Quote:

Originally Posted by ssanwar80 (Post 3908803)
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.

ssanwar80 03-23-2010 06:18 AM

HI ,

I changed the value of maxstartups 1 . still i can able to login to server .

Sayan Acharjee 03-23-2010 06:22 AM

Quote:

Originally Posted by ssanwar80 (Post 3908843)
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. :)


All times are GMT -5. The time now is 11:53 PM.