Jamie Cameron
2023-06-14 21:38:41 -07:00
parent b00f24f0b5
commit e55f6d0908
2 changed files with 5 additions and 2 deletions

View File

@@ -34,14 +34,16 @@ print &ui_form_start("edit_keys.cgi");
print "<b>Key filename</b>\n";
print &ui_select("file", $in{'file'},
[ map { [ $_ ] } @files ]),"\n";
print &ui_submit('View');
print &ui_submit($text{'keys_change'});
print &ui_form_end();
# Show the file contents
print &ui_form_start("save_manual.cgi", "form-data");
print &ui_hidden("file", $in{'file'}),"\n";
$data = &read_file_contents($in{'file'});
print &ui_textarea("data", $data, 20, 80),"\n";
print &ui_textarea("data", $data, 20, 80),"<br>\n";
print &ui_submit($text{'save'});
print &ui_form_end();
&ui_print_footer("", $text{'index_return'});

View File

@@ -231,6 +231,7 @@ sync_auto=&lt;Automatic&gt;
keys_title=Host SSH Keys
keys_desc=This page allows you to view the SSH keys for this host.
keys_none=Could not find any HostKey entries in your SSHD configuration.
keys_change=Change
manual_title=Edit Config Files
manual_ecannot=You are not allowed to edit the SSH server config file