Site update
This commit is contained in:
parent
e86066ef74
commit
b43234a40f
@ -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.
|
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.
|
For this you will need a way to receive the messaggess. I personally use a selfhosted [ntfy.sh](https://ntfy.sh/) server.
|
||||||
|
|
||||||
|
@ -8,9 +8,7 @@
|
|||||||
|
|
||||||
<title>Hardening Level Pro: Notify on SSH Login</title>
|
<title>Hardening Level Pro: Notify on SSH Login</title>
|
||||||
<meta property="og:title" content="Hardening Level Pro: Notify on SSH Login" />
|
<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.
|
<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:type" content="article" />
|
<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="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" />
|
<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>
|
</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>
|
<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>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>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’t worry it’s secure.</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’t worry it’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
|
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>
|
</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>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’s see you in another post.</p>
|
<p>Hope this was of help and let’s see you in another post.</p> </div>
|
||||||
</div>
|
|
||||||
</main>
|
</main>
|
||||||
<footer>
|
<footer>
|
||||||
<div id="links">
|
<div id="links">
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
<guid>https://cronyakatsuki.xyz/blog/hardening-level-pro-notify-on-ssh-login/</guid>
|
<guid>https://cronyakatsuki.xyz/blog/hardening-level-pro-notify-on-ssh-login/</guid>
|
||||||
<description><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>
|
<description><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>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>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>
|
<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>
|
||||||
@ -40,8 +39,7 @@
|
|||||||
session optional pam_exec.so /usr/bin/ntfy-ssh-login.sh
|
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>
|
</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>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>
|
<p>Hope this was of help and let&rsquo;s see you in another post.</p></description>
|
||||||
</description>
|
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
|
Loading…
Reference in New Issue
Block a user