[CentOS-docs] SSH contribution?

Fri Sep 14 14:25:17 UTC 2007
Ned Slider <nedslider at f2s.com>

David Hrbác wrote:
> Wojciech Pilorz napsal(a):
>> Hi,
>>
>> perhaps you might also mention adding sshd: line
>> to /etc/hosts.allow and /etc/hosts.deny
>>
>> Wojtek
> 
> Also add
> sed -i 's/#Protocol 2,1/Protocol 2/' /etc/ssh/sshd_config
> David
> _______________________________________________
> CentOS-docs mailing list
> CentOS-docs at centos.org
> http://lists.centos.org/mailman/listinfo/centos-docs
> 
> 
> 

Yep, sure, could also use hosts.allow and hosts.deny. Personally, I 
prefer to filter at the firewall level against source IPs, but of course 
that's just my preference :)

David - sorry, I don't speak fluent sed, but I assume you're suggesting 
limiting the protocol to SSH2 only? ie, editing /etc/ssh/sshd_config to:


#   Protocol 2,1
     Protocol 2