SSH is port 22 not 2
authorJamie Cameron <jcameron@webmin.com>
Sat, 27 Jun 2009 01:59:10 +0000 (01:59 +0000)
committerJamie Cameron <jcameron@webmin.com>
Sat, 27 Jun 2009 01:59:10 +0000 (01:59 +0000)
firewall/setup.cgi

index e3d3398..a7dc8ba 100755 (executable)
@@ -45,7 +45,7 @@ if (&foreign_installed("sshd")) {
        $conf = &sshd::get_sshd_config();
        $ssh_port = &sshd::find_value("Port", $conf);
        }
-$ssh_port ||= 2;
+$ssh_port ||= 22;
 
 if ($in{'auto'}) {
        @tables = &get_iptables_save();