Linux CentOS SSH埠限制及變更

百聯達發表於2016-03-17
一:IP訪問限制設定
vi /etc/hosts.deny

vi /etc/hosts.allow


二:變更ssh訪問埠

1.Vi /etc/ssh/ssh_config

service sshd restart 
/usr/sbin/sshd -p 9527

2.生產機器禁止root遠端SSH登入
PermitRootLogin no
Port 9527

service sshd restart
/etc/init.d/sshd restart

3.增加新的使用者執行ssh訪問操作
useradd gengchong
passwd gengchong

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28624388/viewspace-2058794/,如需轉載,請註明出處,否則將追究法律責任。

相關文章