1. 程式人生 > >sshd安全加固小技巧

sshd安全加固小技巧

安全

# 修改sshd默認端口
比如將默認端口22改為2222
# 在默認配置文件 /etc/ssh/sshd_config 追加如下內容( 將arcfour cipher 停用)
Ciphers   aes128-ctr,aes192-ctr,aes256-ctr
# 禁用弱MAC算法,在默認配置文件 /etc/ssh/sshd_config追加如下內容
MACs  hmac-sha1,[email protected],hmac-ripemd160,hmac-md5-96,
hmac-sha2-256,hmac-sha2-512,[email protected]

本文出自 “冰凍vs西瓜” 博客,請務必保留此出處http://molewan.blog.51cto.com/287340/1980231

sshd安全加固小技巧