summaryrefslogtreecommitdiff
path: root/ufw.html
diff options
context:
space:
mode:
authorSamuel Hunter <samuelhunter1024@gmail.com>2021-06-30 21:54:15 -0700
committerSamuel Hunter <samuelhunter1024@gmail.com>2021-06-30 21:54:15 -0700
commit09e8d8df7a96cae0b9b12af236a7f6958e79fe70 (patch)
tree8a079adecc00be20604fc32bb77b485c863fe5a1 /ufw.html
parent09d25d75fa01b4ffcc08b219b937e004544a59ed (diff)
UFW: Add SSH recovery section
Diffstat (limited to 'ufw.html')
-rw-r--r--ufw.html15
1 files changed, 14 insertions, 1 deletions
diff --git a/ufw.html b/ufw.html
index 85cd439..2f33047 100644
--- a/ufw.html
+++ b/ufw.html
@@ -56,7 +56,7 @@
<aside>
<strong>Careful!</strong> Enabling <code>ufw</code> without allowing SSH will block you from remoting to your server.
Double-check that you have allowed SSH, and if you have changed the default SSH port, put in <em>that</em> number instead.
- And then double-check again.
+ If you have been blocked from SSH, we will get to how to use Vultr's console to recover from it.
</aside>
<pre><code>ufw default deny incoming # block all incoming connections by default
@@ -96,6 +96,19 @@ To Action From
<pre><code>ufw delete allow in 'WWW Full'
ufw reload</pre></code>
+ <h2 id="recovering-from-losing-ssh">Recovering SSH</h2>
+
+ <p>
+ If you have accidentally firewalled yourself from logging on your computer, you can recover access by using Vultr's console.
+ Looking at your server in the Vultr menu, you should see a meatball menu on the right which gives you access to a console.
+ </p>
+
+ <a href="pix/view-console.png"><img src="pix/view-console.png" alt="View Console"></a>
+
+ <p>Log in through there, and disable ufw by typing:</p>
+
+ <pre><code>ufw disable</code></pre>
+
<h2 id="enabling-common-services">Enabling Common Services</h2>
<p>