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

沒有留言:

張貼留言

Docker Command

#1 pull images $docker pull chusiang/takaojs1607 #2 list images $docker images #3.1 run docker $docker run -it ### bash #3.2 run do...