how to deny webuser ssh to Server?

looking_s

New member
Joined
Sep 7, 2012
Messages
4
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?
 
Do you use directadmin? Why are you using an outdated OS?
 
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.
 
Back
Top