If you want to deny the access via ssh the best thing that you can do is to modify ssh config from /etc/ssh/sshd_config, edit that file and add this line 'AllowUsers <user1,user2,userN>' where <user1,user2,userN> must be replaced by user/s existing in your system.

If you want to deny access for root you also could add 'AllowRootLogin no'

Then run this

kill -HUP `/var/run/sshd.pid`

regards

Koko
UIN 12268291

Stop hovering to collapse...Click to collapse...Hover to expand...Click to expand...