SSH关闭IPV6支持

作为个人电脑,IPV6对我来说没什么用,同样 ,IPV6对我朝来说现在一点用都没有。但是有些VPS系统默认是打开了的,自己用不住,关了好点。
配置文件/etc/ssh/sshd_config
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
ListenAddress 0.0.0.0
里面有这么几行配置 只需要把#ListenAddress 0.0.0.0前面的#去掉
再/etc/init.d/ssh restart 重启服务就可以了