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: edit_host.cgi
#!/usr/bin/perl # edit_host.cgi # Display options for a new or existing host config require (-r 'sshd-lib.pl' ? './sshd-lib.pl' : './ssh-lib.pl'); &ReadParse(); if ($in{'new'}) { &ui_print_header(undef, $text{'host_create'}, "", "chost"); } else { &ui_print_header(undef, $text{'host_edit'}, "", "ehost"); $hconf = &get_client_config(); $host = $hconf->[$in{'idx'}]; $conf = $host->{'members'}; } # 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'}; } print &ui_form_start("save_host.cgi", "post"); print &ui_hidden("idx", $in{'idx'}); print &ui_hidden("new", $in{'new'}); print &ui_table_start($text{'host_header'}, "width=100%", 2); # Name for this host print &ui_table_row($text{'host_name'}, &ui_opt_textbox("name", $host->{'values'}->[0] eq '*' ? '' : $host->{'values'}->[0], 50, $text{'hosts_all'})); # Default user to login as $user = &find_value("User", $conf); print &ui_table_row($text{'host_user'}, &ui_opt_textbox("user", $user, 20, $text{'host_user_def'})); # Send keep-alive packets? $keep = &find_value("KeepAlive", $conf); print &ui_table_row($text{'host_keep'}, &yes_no_default_radio("keep", $keep)); # Real hostname to connect to $hostname = &find_value("HostName", $conf); print &ui_table_row($text{'host_hostname'}, &ui_opt_textbox("hostname", $hostname, 30, $text{'host_hostname_def'})); # Port to use $port = &find_value("Port", $conf); print &ui_table_row($text{'host_port'}, &ui_opt_textbox("port", $port, 6, $text{'default'}." (22)")); # Ask for password if needed, or fail fast? $batch = &find_value("BatchMode", $conf); print &ui_table_row($text{'host_batch'}, &yes_no_default_radio("batch", $batch)); # Compress SSH? $comp = &find_value("Compression", $conf); print &ui_table_row($text{'host_comp'}, &yes_no_default_radio("comp", $comp)); # Escape character in session $escape = &find_value("EscapeChar", $conf); print &ui_table_row($text{'host_escape'}, &ui_radio("escape_def", $escape eq "" ? 1 : $escape eq "none" ? 2 : 0, [ [ 1, $text{'default'}." (~.)" ], [ 2, $text{'host_escape_none'} ], [ 0, &ui_textbox("escape", $escape eq "none" ? "" : $escape, 4) ] ])); if ($version_type ne 'ssh' || $version_number < 3) { # SSH compression level $clevel = &find_value("CompressionLevel", $conf); print &ui_table_row($text{'host_clevel'}, &ui_radio("clevel_def", $clevel ? 0 : 1, [ [ 1, $text{'default'} ], [ 0, &ui_select("clevel", $clevel, [ map { [ $_, $text{"host_clevel_".$_} ] } (1 .. 9) ]) ] ])); # Number of times to attempt connection $attempts = &find_value("ConnectionAttempts", $conf); print &ui_table_row($text{'host_attempts'}, &ui_opt_textbox("attempts", $attempts, 5, $text{'default'})); # Use local privileged port? $priv = &find_value("UsePrivilegedPort", $conf); print &ui_table_row($text{'host_priv'}, &yes_no_default_radio("priv", $priv)); # Try RSH if SSH fails? $rsh = &find_value("FallBackToRsh", $conf); print &ui_table_row($text{'host_rsh'}, &yes_no_default_radio("rsh", $rsh)); # Use RSH only? $usersh = &find_value("UseRsh", $conf); print &ui_table_row($text{'host_usersh'}, &yes_no_default_radio("usersh", $usersh)); } # Forward SSH agent? $agent = &find_value("ForwardAgent", $conf); print &ui_table_row($text{'host_agent'}, &yes_no_default_radio('agent', $agent)); # Forward X connection? $x11 = &find_value("ForwardX11", $conf); print &ui_table_row($text{'host_x11'}, &yes_no_default_radio('x11', $x11)); # Strictly check host keys? $strict = &find_value("StrictHostKeyChecking", $conf); print &ui_table_row($text{'host_strict'}, &ui_radio('strict', lc($strict) eq 'no' ? 0 : lc($strict) eq 'yes' ? 1 : lc($strict) eq 'ask' ? 3 : 2, [ [ 0, $text{'yes'} ], [ 1, $text{'no'} ], [ 3, $text{'host_ask'} ], [ 2, $text{'default'} ] ])); if ($version_type eq 'openssh') { # Double-check remote host IP? $checkip = &find_value("CheckHostIP", $conf); print &ui_table_row($text{'host_checkip'}, &yes_no_default_radio('checkip', $checkip)); # SSH protocols to try $prots = &find_value("Protocol", $conf); print &ui_table_row($text{'host_prots'}, &ui_select("prots", $prots, [ [ '', $text{'default'} ], [ 1, $text{'host_prots1'} ], [ 2, $text{'host_prots2'} ], [ '1,2', $text{'host_prots12'} ], [ '2,1', $text{'host_prots21'} ] ], 1, 0, 1)); } print &ui_table_hr(); # Local ports to forward @lforward = &find("LocalForward", $conf); @ltable = ( ); $i = 0; foreach $l (@lforward, { }) { local ($lp, $rh, $rp) = ( $l->{'values'}->[0], split(/:/, $l->{'values'}->[1]) ); push(@ltable, [ &ui_textbox("llport_$i", $lp, 8), &ui_textbox("lrhost_$i", $rh, 8), &ui_textbox("lrport_$i", $rp, 8) ]); $i++; } print &ui_table_row($text{'host_lforward'}, &ui_columns_table([ $text{'host_llport'}, $text{'host_lrhost'}, $text{'host_lrport'} ], 50, \@ltable)); print &ui_table_hr(); # Remote ports to forward @rforward = &find("RemoteForward", $conf); @rtable = ( ); $i = 0; foreach $r (@rforward, { }) { local ($rp, $lh, $lp) = ( $r->{'values'}->[0], split(/:/, $r->{'values'}->[1]) ); push(@rtable, [ &ui_textbox("rrport_$i", $rp, 8), &ui_textbox("rlhost_$i", $lh, 40), &ui_textbox("rlport_$i", $lp, 8) ]); $i++; } print &ui_table_row($text{'host_rforward'}, &ui_columns_table([ $text{'host_rrport'}, $text{'host_rlhost'}, $text{'host_rlport'} ], 50, \@rtable)); print &ui_table_end(); if ($in{'new'}) { print &ui_form_end([ [ undef, $text{'create'} ] ]); } else { print &ui_form_end([ [ undef, $text{'save'} ], [ 'delete', $text{'delete'} ] ]); } &ui_print_footer("list_hosts.cgi", $text{'hosts_return'}, "", $text{'index_return'});
Upload File
Create Folder