Skip to content
Snippets Groups Projects
Commit a6b315fe authored by Bob Mottram's avatar Bob Mottram
Browse files

web UI gives advice on logging in via ssh

parent 893a8658
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,11 @@
<h3>SSH access is enabled</h3>
<p>You can now log in with:</p>
<p><i>ssh admin@freedombone -p 2222</i></p>
<p>or</p>
<p><i>ssh admin@HOSTNAME -p 2222</i></p>
<br>
<form action="settings.html">
......
......@@ -19,6 +19,9 @@ if (isset($_POST['submitssh'])) {
fwrite($ssh_file, '1,'.$publickey);
fclose($ssh_file);
$host=gethostname();
exec('sed -i "s|HOSTNAME|'.$host.'|g" ssh_enabled.html');
$output_filename = "ssh_enabled.html";
}
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment