码迷,mamicode.com
首页 > 其他好文 > 详细

sshd安全加固小技巧

时间:2017-11-09 14:36:44      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:安全

# 修改sshd默认端口
比如将默认端口22改为2222
# 在默认配置文件 /etc/ssh/sshd_config 追加如下内容( 将arcfour cipher 停用)
Ciphers   aes128-ctr,aes192-ctr,aes256-ctr
# 禁用弱MAC算法,在默认配置文件 /etc/ssh/sshd_config追加如下内容
MACs  hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-md5-96,
hmac-sha2-256,hmac-sha2-512,hmac-ripemd160@openssh.com

本文出自 “冰冻vs西瓜” 博客,请务必保留此出处http://molewan.blog.51cto.com/287340/1980231

sshd安全加固小技巧

标签:安全

原文地址:http://molewan.blog.51cto.com/287340/1980231

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!