\n";
&scmd(1);
print "| $text{'host_name'} | \n";
printf " %s\n",
$host->{'values'}->[0] eq '*' ? 'checked' : '', $text{'hosts_all'};
printf "\n",
$host->{'values'}->[0] eq '*' ? '' : 'checked';
printf " | \n",
$host->{'values'}->[0] eq '*' ? '' : $host->{'values'}->[0];
&ecmd();
&scmd();
$user = &find_value("User", $conf);
print "$text{'host_user'} | \n";
printf " %s\n",
$user ? "" : "checked", $text{'host_user_def'};
printf "\n",
$user ? "checked" : "";
print " | \n";
&ecmd();
&scmd();
$keep = &find_value("KeepAlive", $conf);
print "$text{'host_keep'} | \n";
printf " %s\n",
lc($keep) eq 'yes' ? "checked" : "", $text{'yes'};
printf " %s\n",
lc($keep) eq 'no' ? "checked" : "", $text{'no'};
printf " %s | \n",
!$keep ? "checked" : "", $text{'default'};
&ecmd();
&scmd();
$hostname = &find_value("HostName", $conf);
print "$text{'host_hostname'} | \n";
printf " %s\n",
$hostname ? "" : "checked", $text{'host_hostname_def'};
printf "\n",
$hostname ? "checked" : "";
print " | \n";
&ecmd();
&scmd();
$batch = &find_value("BatchMode", $conf);
print "$text{'host_batch'} | \n";
printf " %s\n",
lc($batch) eq 'no' ? "checked" : "", $text{'yes'};
printf " %s\n",
lc($batch) eq 'yes' ? "checked" : "", $text{'no'};
printf " %s | \n",
!$batch ? "checked" : "", $text{'default'};
&ecmd();
&scmd();
$port = &find_value("Port", $conf);
print "$text{'host_port'} | \n";
printf " %s\n",
$port ? "" : "checked", $text{'default'};
printf "\n",
$port ? "checked" : "";
print " | \n";
&ecmd();
&scmd();
$comp = &find_value("Compression", $conf);
print "$text{'host_comp'} | \n";
printf " %s\n",
lc($comp) eq 'yes' ? "checked" : "", $text{'yes'};
printf " %s\n",
lc($comp) eq 'no' ? "checked" : "", $text{'no'};
printf " %s | \n",
!$comp ? "checked" : "", $text{'default'};
&ecmd();
&scmd();
$escape = &find_value("EscapeChar", $conf);
print "$text{'host_escape'} | \n";
printf " %s\n",
$escape eq "" ? "checked" : "", $text{'default'};
printf " %s\n",
$escape eq "none" ? "checked" : "", $text{'host_escape_none'};
printf "\n",
$escape eq "" || $escape eq "none" ? "" : "checked";
printf " | \n",
$escape eq "" || $escape eq "none" ? "" : $escape;
&ecmd();
if ($version{'type'} ne 'ssh' || $version{'number'} < 3) {
&scmd();
$clevel = &find_value("CompressionLevel", $conf);
print "$text{'host_clevel'} | \n";
printf " %s\n",
$clevel ? "" : "checked", $text{'default'};
printf "\n",
$clevel ? "checked" : "";
print " | \n";
&ecmd();
&scmd();
$attempts = &find_value("ConnectionAttempts", $conf);
print "$text{'host_attempts'} | \n";
printf " %s\n",
$attempts ? "" : "checked", $text{'default'};
printf "\n",
$attempts ? "checked" : "";
print " | \n";
&ecmd();
&scmd();
$priv = &find_value("UsePrivilegedPort", $conf);
print "$text{'host_priv'} | \n";
printf " %s\n",
lc($priv) eq 'yes' ? "checked" : "", $text{'yes'};
printf " %s\n",
lc($priv) eq 'no' ? "checked" : "", $text{'no'};
printf " %s | \n",
!$priv ? "checked" : "", $text{'default'};
&ecmd();
&scmd();
$rsh = &find_value("FallBackToRsh", $conf);
print "$text{'host_rsh'} | \n";
printf " %s\n",
lc($rsh) eq 'yes' ? "checked" : "", $text{'yes'};
printf " %s\n",
lc($rsh) eq 'no' ? "checked" : "", $text{'no'};
printf " %s | \n",
!$rsh ? "checked" : "", $text{'default'};
&ecmd();
&scmd();
$usersh = &find_value("UseRsh", $conf);
print "$text{'host_usersh'} | \n";
printf " %s\n",
lc($usersh) eq 'yes' ? "checked" : "", $text{'yes'};
printf " %s\n",
lc($usersh) eq 'no' ? "checked" : "", $text{'no'};
printf " %s | \n",
!$usersh ? "checked" : "", $text{'default'};
&ecmd();
}
&scmd();
$agent = &find_value("ForwardAgent", $conf);
print "$text{'host_agent'} | \n";
printf " %s\n",
lc($agent) eq 'yes' ? "checked" : "", $text{'yes'};
printf " %s\n",
lc($agent) eq 'no' ? "checked" : "", $text{'no'};
printf " %s | \n",
!$agent ? "checked" : "", $text{'default'};
&ecmd();
&scmd();
$x11 = &find_value("ForwardX11", $conf);
print "$text{'host_x11'} | \n";
printf " %s\n",
lc($x11) eq 'yes' ? "checked" : "", $text{'yes'};
printf " %s\n",
lc($x11) eq 'no' ? "checked" : "", $text{'no'};
printf " %s | \n",
!$x11 ? "checked" : "", $text{'default'};
&ecmd();
&scmd();
$strict = &find_value("StrictHostKeyChecking", $conf);
print "$text{'host_strict'} | \n";
printf " %s\n",
lc($strict) eq 'no' ? "checked" : "", $text{'yes'};
printf " %s\n",
lc($strict) eq 'yes' ? "checked" : "", $text{'no'};
printf " %s\n",
lc($strict) eq 'ask' ? "checked" : "", $text{'host_ask'};
printf " %s | \n",
!$strict ? "checked" : "", $text{'default'};
&ecmd();
if ($version{'type'} eq 'openssh') {
&scmd();
$checkip = &find_value("CheckHostIP", $conf);
print "$text{'host_checkip'} | \n";
printf " %s\n",
lc($checkip) eq 'yes' ? "checked" : "", $text{'yes'};
printf " %s\n",
lc($checkip) eq 'no' ? "checked" : "", $text{'no'};
printf " %s | \n",
!$checkip ? "checked" : "", $text{'default'};
&ecmd();
&scmd(1);
$prots = &find_value("Protocol", $conf);
@prots = split(/,/, $prots);
print "$text{'host_prots'} | \n";
printf " %s\n",
$prots ? '' : 'checked', $text{'default'};
printf " %s\n",
$prots ? 'checked' : '', $text{'host_prots_sel'};
foreach $p (1, 2) {
printf " %s\n",
$p, &indexof($p, @prots) >= 0 ? "checked" : "",
$text{"net_prots_$p"};
}
print " | \n";
&ecmd();
}
&scmd(1);
print "
| \n";
&ecmd();
&scmd(1);
print "$text{'host_lforward'} | \n";
print " | \n";
&ecmd();
&scmd(1);
print "
| \n";
&ecmd();
&scmd(1);
print "$text{'host_rforward'} | \n";
print " | \n";
&ecmd();
print "