PDA

View Full Version : how to do this on centos 5.1


kadi
2nd May 2008, 06:05
hellp
i read about these to add security to your system, and i have CentOS 5.1 on
one of my servers (2) but i am more familiar with debian etch files so which
files to do this changes and where to find those file :
direct login to root = off and remote login =off.
disable password authentication.
Use SSH Keys instead and change SSH to a port other than 22.
need some details how to do that with CentOS 5.1.
Thanks very much:)

zcworld
2nd May 2008, 09:48
i think the changes you need to do are in the sshd.conf file
@
/etc/ssh/sshd_config.conf ( i think )
but its in /etc/ssh ....

you change them in there
and than
/etc/init.d/sshd restart