2017年10月27日 星期五

New Linux Server Setup Configuration for ssh new port number CentOS 6

#Check Firewall already disabled
getenforce



#If Firewall not show disabled, please modify the file.
vi /etc/sysconfig/selinux
SELINUX=disabled
cat /etc/sysconfig/selinux
#Check iptables already off
chkconfig iptables --list
#If iptables not show off, please modify the file.
chkconfig iptables off




#Add the port 222
vi /etc/ssh/sshd_config
Port 222



#restart sshd
service sshd restart
#reboot server due to we change the firewall setting
reboot
#Check Firewall already disabled
getenforce
#Add user for DEV or QA
useradd John
passwd John
#Add user into sudoer for get root permission
vi /etc/sudoers
John ALL=(ALL)  ALL

沒有留言:

張貼留言

check_systemv1.1

 check_systemv1.1.bat 可用於電腦資產盤點 @echo off REM 後續命令使用的是:UTF-8編碼 chcp 65001 echo ***Thanks for your cooperation*** echo ***感謝你的合作*** timeout 1...