L looking_s New member Joined Sep 7, 2012 Messages 4 Sep 7, 2012 #1 Hello, everyone,my English is no good,I used Centos 4.8 ,I want to deny webuser ssh to Sever,I already Modify /etc/default/useradd SEHLLS=/usr/bin/nologin ,but the shell are /bash/bin that the newly create user ,Can you tell me to do?
Hello, everyone,my English is no good,I used Centos 4.8 ,I want to deny webuser ssh to Sever,I already Modify /etc/default/useradd SEHLLS=/usr/bin/nologin ,but the shell are /bash/bin that the newly create user ,Can you tell me to do?
scsi Verified User Joined Aug 19, 2008 Messages 4,539 Sep 7, 2012 #2 Do you use directadmin? Why are you using an outdated OS?
L looking_s New member Joined Sep 7, 2012 Messages 4 Sep 7, 2012 #3 scsi said: Do you use directadmin? Why are you using an outdated OS? Click to expand... yes ,Thank you,I already installed the directadmin,but I believe have no effect whith use outdated OS.
scsi said: Do you use directadmin? Why are you using an outdated OS? Click to expand... yes ,Thank you,I already installed the directadmin,but I believe have no effect whith use outdated OS.
zEitEr Super Moderator Joined Apr 11, 2005 Messages 15,396 Location www.poralix.com Sep 8, 2012 #4 Update your /etc/ssh/sshd_config to allow only admin, what else user you want to allow to login via SSH. Code: AllowUsers admin additionally you might want to change it's port to something different.
Update your /etc/ssh/sshd_config to allow only admin, what else user you want to allow to login via SSH. Code: AllowUsers admin additionally you might want to change it's port to something different.