Site update

This commit is contained in:
CronyAkatsuki 2023-11-10 20:29:40 +01:00
parent e86066ef74
commit b43234a40f
3 changed files with 4 additions and 10 deletions

View File

@ -6,7 +6,7 @@ draft = false
You ever anxious about somebody possibly gaining access to your machine? Fret not, you can just make it so that on any kind of login to your system directly you can get a notification on your phone.
---
<!--more-->
For this you will need a way to receive the messaggess. I personally use a selfhosted [ntfy.sh](https://ntfy.sh/) server.

View File

@ -8,9 +8,7 @@
<title>Hardening Level Pro: Notify on SSH Login</title>
<meta property="og:title" content="Hardening Level Pro: Notify on SSH Login" />
<meta property="og:description" content="You ever anxious about somebody possibly gaining access to your machine? Fret not, you can just make it so that on any kind of login to your system directly you can get a notification on your phone.
For this you will need a way to receive the messaggess. I personally use a selfhosted ntfy.sh server.
The most important way of managing your linux vps or in general any machine for most of us is ssh." />
<meta property="og:description" content="You ever anxious about somebody possibly gaining access to your machine? Fret not, you can just make it so that on any kind of login to your system directly you can get a notification on your phone." />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://cronyakatsuki.xyz/blog/hardening-level-pro-notify-on-ssh-login/" /><meta property="article:section" content="blog" />
<meta property="article:published_time" content="2023-11-10T19:27:27+01:00" />
@ -48,7 +46,6 @@ The most important way of managing your linux vps or in general any machine for
</div>
<p>You ever anxious about somebody possibly gaining access to your machine? Fret not, you can just make it so that on any kind of login to your system directly you can get a notification on your phone.</p>
<hr>
<p>For this you will need a way to receive the messaggess. I personally use a selfhosted <a href="https://ntfy.sh/">ntfy.sh</a> server.</p>
<p>The most important way of managing your linux vps or in general any machine for most of us is ssh. So why not just get a notification whenever somebody logins!? Even you!</p>
<p>To achieve this you will need to make a shell script and use a pam module, yes you will need to enable UsePAM in your sshd config, but don&rsquo;t worry it&rsquo;s secure.</p>
@ -70,8 +67,7 @@ The most important way of managing your linux vps or in general any machine for
session optional pam_exec.so /usr/bin/ntfy-ssh-login.sh
</code></pre><p>Also make sure that pam is realoaded using this command <code>pam-auth-update --force --package</code>.</p>
<p>You can modify the script to do email or anythingg else, but I preffer ntfy since the notification are instant.</p>
<p>Hope this was of help and let&rsquo;s see you in another post.</p>
</div>
<p>Hope this was of help and let&rsquo;s see you in another post.</p> </div>
</main>
<footer>
<div id="links">

View File

@ -18,7 +18,6 @@
<guid>https://cronyakatsuki.xyz/blog/hardening-level-pro-notify-on-ssh-login/</guid>
<description>&lt;p&gt;You ever anxious about somebody possibly gaining access to your machine? Fret not, you can just make it so that on any kind of login to your system directly you can get a notification on your phone.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;For this you will need a way to receive the messaggess. I personally use a selfhosted &lt;a href=&#34;https://ntfy.sh/&#34;&gt;ntfy.sh&lt;/a&gt; server.&lt;/p&gt;
&lt;p&gt;The most important way of managing your linux vps or in general any machine for most of us is ssh. So why not just get a notification whenever somebody logins!? Even you!&lt;/p&gt;
&lt;p&gt;To achieve this you will need to make a shell script and use a pam module, yes you will need to enable UsePAM in your sshd config, but don&amp;rsquo;t worry it&amp;rsquo;s secure.&lt;/p&gt;
@ -40,8 +39,7 @@
session optional pam_exec.so /usr/bin/ntfy-ssh-login.sh
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Also make sure that pam is realoaded using this command &lt;code&gt;pam-auth-update --force --package&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;You can modify the script to do email or anythingg else, but I preffer ntfy since the notification are instant.&lt;/p&gt;
&lt;p&gt;Hope this was of help and let&amp;rsquo;s see you in another post.&lt;/p&gt;
</description>
&lt;p&gt;Hope this was of help and let&amp;rsquo;s see you in another post.&lt;/p&gt;</description>
</item>
<item>