1.公有云环境安全组调整

  1. 生产环境: MySQL Redis 仅内网连接<br /> 测试环境: 开放规则待沟通

2. 普通用户登陆

   只读用户 readel 私钥登录

3.sshd安全相关

3.1 默认端口该修改为30001

3.2 登陆方式采用key登陆

root readel单独私钥文件互不影响

ssh-keygen -t rsa  (下载私钥文件)

vim /etc/ssh/sshd_config
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile /root/.ssh/authorized_keys
PasswordAuthentication no

cd /root/.ssh/
cat id_rsa.pub >> authorized_keys
chmod  600 /root/.ssh/authorized_keys
systemctl restart sshd.service

 chmod 0600 pinpoint_syf

4. liunx alias

cat .bash_profile
alias rm='echo can not use rm'
source  .bash_profile



cat /etc/profile
alias rm='echo can not use rm'
source  /etc/profile