- login to your server, and gain root access (by sudo or su - )
- Edit ssh configuration file. Usually the file is located at /etc/ssh/sshd_config
- Find the line: PermitRootLogin yes, then replace the line into: PermitRootLogin no
- If you'd like to only enable protocol version 2, find the line: Protocol 2,1 then replace it into: Protocol 2
- Save the files
- restart ssh:
/etc/rc.d/init.d/sshd restart
That's all :)
This comment has been removed by a blog administrator.
ReplyDelete