It's necessary, because the ssh service is called ssh on ubuntu, but sshd in centos/redhat, but they are the same service. i don't quite understand the dangerous part.