Make the displayed SSH username configurable
Some checks failed
continuous-integration/drone/pr Build is failing

This patch allows the SSH username displayed in templates to be
configured through the SSH_USERNAME environment variable.
This commit is contained in:
2021-08-09 21:23:12 +00:00
parent 7b16606b16
commit d4a9f2f40a
5 changed files with 8 additions and 5 deletions

View File

@ -21,13 +21,13 @@
</li>
<li>
How do I log in?
<p>ssh to the ip provided to you using the cyberian user.</p>
<pre class='code'>$ ssh cyberian@1.2.3.4</pre>
<p>ssh to the ip provided to you using the "{{ ssh_username }}" user.</p>
<pre class='code'>$ ssh {{ ssh_username }}@1.2.3.4</pre>
<p>For more information, see <a href="/about-ssh">Understanding the Secure Shell Protocol (SSH)</a>.</p>
</li>
<li>
How do I change to the root user?
<p>The cyberian user has passwordless sudo access by default. This should work:</p>
<p>The "{{ ssh_username }}" user has passwordless sudo access by default. This should work:</p>
<pre class='code'>
# Linux
$ sudo su -