X7ROOT File Manager
Current Path:
/usr/libexec/webmin/sshd
usr
/
libexec
/
webmin
/
sshd
/
📁
..
📄
CHANGELOG
(1.04 KB)
📄
apply.cgi
(233 B)
📄
backup_config.pl
(892 B)
📄
cgi_args.pl
(264 B)
📄
config
(202 B)
📄
config-AlmaLinux-8.0-ALL
(296 B)
📄
config-CentOS-Stream-Linux-8.0-ALL
(296 B)
📄
config-Oracle-Linux-8.0-ALL
(296 B)
📄
config-Rocky-Linux-8.0-ALL
(296 B)
📄
config-Ubuntu-Linux-10.10-17.10
(256 B)
📄
config-Ubuntu-Linux-18.04-ALL
(296 B)
📄
config-coherent-linux
(276 B)
📄
config-debian-linux-10.0-ALL
(296 B)
📄
config-debian-linux-2.2-9.0
(264 B)
📄
config-macos
(194 B)
📄
config-macos-8.1-ALL
(183 B)
📄
config-mandrake-linux-7.1-ALL
(258 B)
📄
config-open-linux-3.1
(276 B)
📄
config-openmamba-linux
(276 B)
📄
config-pardus-linux
(235 B)
📄
config-redhat-linux-24.0-ALL
(296 B)
📄
config-redhat-linux-7.0-23.0
(258 B)
📄
config-slackware-linux-8.0-ALL
(268 B)
📄
config-sol-linux
(274 B)
📄
config-solaris-10-ALL
(344 B)
📄
config-solaris-9
(205 B)
📄
config-suse-linux-7.1-8.0
(266 B)
📄
config-suse-linux-8.2-ALL
(271 B)
📄
config-syno-linux
(342 B)
📄
config-trustix-linux
(303 B)
📄
config-turbo-linux-7.0
(276 B)
📄
config-united-linux
(266 B)
📄
config-windows
(267 B)
📄
config.info
(479 B)
📄
config.info.bg
(909 B)
📄
config.info.ca
(577 B)
📄
config.info.cs
(555 B)
📄
config.info.de
(574 B)
📄
config.info.es
(372 B)
📄
config.info.eu
(597 B)
📄
config.info.fa
(569 B)
📄
config.info.fr
(647 B)
📄
config.info.hu
(0 B)
📄
config.info.it
(576 B)
📄
config.info.ja
(558 B)
📄
config.info.ko
(498 B)
📄
config.info.nl
(598 B)
📄
config.info.no
(499 B)
📄
config.info.pl
(595 B)
📄
config.info.ru
(488 B)
📄
config.info.sk
(498 B)
📄
config.info.uk
(511 B)
📄
edit_access.cgi
(2.25 KB)
📄
edit_host.cgi
(5.81 KB)
📄
edit_keys.cgi
(1.38 KB)
📄
edit_manual.cgi
(879 B)
📄
edit_misc.cgi
(3.35 KB)
📄
edit_net.cgi
(3.84 KB)
📄
edit_sync.cgi
(934 B)
📄
edit_users.cgi
(6.13 KB)
📁
help
📁
images
📄
index.cgi
(2.61 KB)
📄
install_check.pl
(370 B)
📁
lang
📄
list_hosts.cgi
(707 B)
📄
log_parser.pl
(612 B)
📄
module.info
(127 B)
📄
module.info.af
(0 B)
📄
module.info.af.auto
(107 B)
📄
module.info.ar
(0 B)
📄
module.info.ar.auto
(135 B)
📄
module.info.be
(0 B)
📄
module.info.be.auto
(143 B)
📄
module.info.bg
(25 B)
📄
module.info.bg.auto
(118 B)
📄
module.info.ca
(91 B)
📄
module.info.ca.auto
(13 B)
📄
module.info.cs
(19 B)
📄
module.info.cs.auto
(90 B)
📄
module.info.da
(0 B)
📄
module.info.da.auto
(92 B)
📄
module.info.de
(89 B)
📄
module.info.de.auto
(13 B)
📄
module.info.el
(0 B)
📄
module.info.el.auto
(164 B)
📄
module.info.es
(21 B)
📄
module.info.es.auto
(92 B)
📄
module.info.eu
(24 B)
📄
module.info.eu.auto
(81 B)
📄
module.info.fa
(0 B)
📄
module.info.fa.auto
(147 B)
📄
module.info.fi
(0 B)
📄
module.info.fi.auto
(92 B)
📄
module.info.fr
(20 B)
📄
module.info.fr.auto
(97 B)
📄
module.info.he
(0 B)
📄
module.info.he.auto
(120 B)
📄
module.info.hr
(0 B)
📄
module.info.hr.auto
(110 B)
📄
module.info.hu
(30 B)
📄
module.info.hu.auto
(99 B)
📄
module.info.it
(19 B)
📄
module.info.it.auto
(78 B)
📄
module.info.ja
(22 B)
📄
module.info.ja.auto
(116 B)
📄
module.info.ko
(19 B)
📄
module.info.ko.auto
(93 B)
📄
module.info.lt
(0 B)
📄
module.info.lt.auto
(105 B)
📄
module.info.lv
(0 B)
📄
module.info.lv.auto
(103 B)
📄
module.info.ms
(94 B)
📄
module.info.ms.auto
(13 B)
📄
module.info.mt
(0 B)
📄
module.info.mt.auto
(94 B)
📄
module.info.nl
(19 B)
📄
module.info.nl.auto
(82 B)
📄
module.info.no
(19 B)
📄
module.info.no.auto
(82 B)
📄
module.info.pl
(21 B)
📄
module.info.pl.auto
(84 B)
📄
module.info.pt
(0 B)
📄
module.info.pt.auto
(100 B)
📄
module.info.pt_BR
(0 B)
📄
module.info.pt_BR.auto
(109 B)
📄
module.info.ro
(0 B)
📄
module.info.ro.auto
(110 B)
📄
module.info.ru
(25 B)
📄
module.info.ru.auto
(124 B)
📄
module.info.sk
(19 B)
📄
module.info.sk.auto
(84 B)
📄
module.info.sl
(0 B)
📄
module.info.sl.auto
(99 B)
📄
module.info.sv
(0 B)
📄
module.info.sv.auto
(96 B)
📄
module.info.th
(0 B)
📄
module.info.th.auto
(251 B)
📄
module.info.tr
(0 B)
📄
module.info.tr.auto
(109 B)
📄
module.info.uk
(0 B)
📄
module.info.uk.auto
(155 B)
📄
module.info.ur
(0 B)
📄
module.info.ur.auto
(162 B)
📄
module.info.vi
(0 B)
📄
module.info.vi.auto
(115 B)
📄
module.info.zh
(0 B)
📄
module.info.zh.auto
(103 B)
📄
module.info.zh_TW
(0 B)
📄
module.info.zh_TW.auto
(112 B)
📄
save_access.cgi
(1.87 KB)
📄
save_host.cgi
(4.69 KB)
📄
save_manual.cgi
(542 B)
📄
save_misc.cgi
(2.53 KB)
📄
save_net.cgi
(2.9 KB)
📄
save_sync.cgi
(493 B)
📄
save_users.cgi
(3.85 KB)
📄
sshd-lib.pl
(8.73 KB)
📄
start.cgi
(209 B)
📄
stop.cgi
(193 B)
📄
useradmin_update.pl
(1.34 KB)
Editing: save_host.cgi
#!/usr/bin/perl # save_host.cgi # Create, update or delete a client host require (-r 'sshd-lib.pl' ? './sshd-lib.pl' : './ssh-lib.pl'); &ReadParse(); &lock_file($config{'client_config'}); $hconf = &get_client_config(); &error_setup($text{'host_err'}); # Get version and type if (&get_product_name() eq 'usermin') { $version_type = &get_ssh_type(); $version_number = &get_ssh_version(); } else { $version_type = $version{'type'}; $version_number = $version{'number'}; } if ($in{'delete'}) { # Just delete the host $host = $hconf->[$in{'idx'}]; &delete_host($host); } else { # Saving or creating a host $host = $hconf->[$in{'idx'}] if (!$in{'new'}); if ($in{'name_def'}) { $host->{'values'} = [ '*' ]; } else { $in{'name'} =~ /^\S+$/ || &error($text{'host_ename'}); $host->{'values'} = [ $in{'name'} ]; } if ($in{'new'}) { # Create empty host structure &create_host($host); } else { &modify_host($host); } $conf = $host->{'members'}; # Validate and store host options if ($in{'user_def'}) { &save_directive("User", $conf); } else { $in{'user'} =~ /^\S+$/ || &error($text{'host_euser'}); &save_directive("User", $conf, $in{'user'}); } &save_directive("KeepAlive", $conf, $in{'keep'} == 2 ? undef : $in{'keep'} ? 'yes' : 'no'); if ($in{'hostname_def'}) { &save_directive("HostName", $conf); } else { &to_ipaddress($in{'hostname'}) || &to_ip6address($in{'hostname'}) || &error($text{'host_ehostname'}); &save_directive("HostName", $conf, $in{'hostname'}); } &save_directive("BatchMode", $conf, $in{'batch'} == 2 ? undef : $in{'batch'} ? 'yes' : 'no'); if ($in{'port_def'}) { &save_directive("Port", $conf); } else { $in{'port'} =~ /^\d+$/ || &error($text{'host_eport'}); &save_directive("Port", $conf, $in{'port'}); } if ($version_type ne 'ssh' || $version_number < 3) { &save_directive("Compression", $conf, $in{'comp'} == 2 ? undef : $in{'comp'} ? 'yes' : 'no'); } if ($in{'escape_def'} == 1) { &save_directive("EscapeChar", $conf); } elsif ($in{'escape_def'} == 2) { &save_directive("EscapeChar", $conf, "none"); } else { $in{'escape'} =~ /^\S$/ || $in{'escape'} =~ /^\^\S$/ || &error($text{'host_eescape'}); &save_directive("EscapeChar", $conf, $in{'escape'}); } if ($version_type ne 'ssh' || $version_number < 3) { if ($in{'clevel_def'}) { &save_directive("CompressionLevel", $conf); } else { &save_directive("CompressionLevel", $conf, $in{'clevel'}); } if ($in{'attempts_def'}) { &save_directive("ConnectionAttempts", $conf); } else { $in{'attempts'} =~ /^\d+$/ || &error($text{'host_eattempts'}); &save_directive("ConnectionAttempts", $conf, $in{'attempts'}); } &save_directive("UsePrivilegedPort", $conf, $in{'priv'} == 2 ? undef : $in{'priv'} ? 'yes' : 'no'); &save_directive("FallBackToRsh", $conf, $in{'rsh'} == 2 ? undef : $in{'rsh'} ? 'yes' : 'no'); &save_directive("UseRsh", $conf, $in{'usersh'} == 2 ? undef : $in{'usersh'} ? 'yes' : 'no'); } &save_directive("ForwardAgent", $conf, $in{'agent'} == 2 ? undef : $in{'agent'} ? 'yes' : 'no'); &save_directive("ForwardX11", $conf, $in{'x11'} == 2 ? undef : $in{'x11'} ? 'yes' : 'no'); &save_directive("StrictHostKeyChecking", $conf, $in{'strict'} == 2 ? undef : $in{'strict'} == 1 ? 'yes' : $in{'strict'} == 0 ? 'no' : 'ask'); if ($version_type eq 'openssh') { &save_directive("CheckHostIP", $conf, $in{'checkip'} == 2 ? undef : $in{'checkip'} ? 'yes' : 'no'); &save_directive("Protocol", $conf, $in{'prots'} || undef); } for($i=0; defined($in{"llport_$i"}); $i++) { next if (!$in{"llport_$i"} && !$in{"lrhost_$i"} && !$in{"lrport_$i"}); $in{"llport_$i"} =~ /^\d+$/ || &error($text{'host_elport'}); $in{"lrhost_$i"} =~ /^\S+$/ || &error($text{'host_erhost'}); $in{"lrport_$i"} =~ /^\d+$/ || &error($text{'host_erport'}); push(@lforward, sprintf("%d %s:%d", $in{"llport_$i"}, $in{"lrhost_$i"}, $in{"lrport_$i"})); } &save_directive("LocalForward", $conf, @lforward); for($i=0; defined($in{"rrport_$i"}); $i++) { next if (!$in{"rrport_$i"} && !$in{"rlhost_$i"} && !$in{"rlport_$i"}); $in{"rrport_$i"} =~ /^\d+$/ || &error($text{'host_erport'}); $in{"rlhost_$i"} =~ /^\S+$/ || &error($text{'host_elhost'}); $in{"rlport_$i"} =~ /^\d+$/ || &error($text{'host_elport'}); push(@rforward, sprintf("%d %s:%d", $in{"rrport_$i"}, $in{"rlhost_$i"}, $in{"rlport_$i"})); } &save_directive("RemoteForward", $conf, @rforward); } &flush_file_lines(); &unlock_file($config{'client_config'}); if (&get_product_name() ne 'usermin') { &webmin_log($in{'new'} ? "create" : $in{'delete'} ? "delete" : "update", "host", $host->{'values'}->[0]); } &redirect("list_hosts.cgi");
Upload File
Create Folder