Monday, May 4, 2009

disable root access on ssh server

for the telnet server, to disable root access, normally people just remove everything under /etc/securetty that root doesnt have access, and for ssh server, just edit /etc/ssh/sshd_config file, and change this line "PermitRootLogin Yes" to "PermitRootLogin no"

thats it, and dont forget to restart sshd service by doing "/etc/rc.d/init.d/sshd restart", dont worry, your current session wont lost because of restarting the ssh server.

No comments:


last archive