#Check Firewall already disabledgetenforce#If Firewall not show disabled, please modify the file.vi /etc/sysconfig/selinuxSELINUX=disabledcat /etc/sysconfig/selinux#Check iptables already offchkconfig iptables --list#If iptables not show off, please modify the file.chkconfig iptables off#Add the port 222vi /etc/ssh/sshd_configPort 222#restart sshdservice sshd restart#reboot server due to we change the firewall settingreboot#Check Firewall already disabledgetenforce#Add user for DEV or QAuseradd Johnpasswd John#Add user into sudoer for get root permissionvi /etc/sudoersJohn ALL=(ALL) ALL


沒有留言:
張貼留言