Linux centos7 系统安全加固篇
- 系统安装时,最小化安装,卸载或停止不需要的程序或服务。
- 修改sshd配置,加固ssh的安装连接。
- 连接方式可以改成密匙文件
-- 制作密匙文件
[root@ald8 ~]# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Created directory '/root/.ssh'. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root |