<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Python on ae3.ch</title>
    <link>https://ae3.ch/tags/python/</link>
    <description>Recent content in Python on ae3.ch</description>
    <image>
      <title>ae3.ch</title>
      <url>https://ae3.ch/ae3-og.png</url>
      <link>https://ae3.ch/ae3-og.png</link>
    </image>
    <generator>Hugo -- 0.154.5</generator>
    <language>en</language>
    <lastBuildDate>Mon, 12 Dec 2022 17:46:28 +0100</lastBuildDate>
    <atom:link href="https://ae3.ch/tags/python/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Telegram Notification on successful SSH Login</title>
      <link>https://ae3.ch/telegram-notification-on-successful-ssh-login/</link>
      <pubDate>Mon, 12 Dec 2022 17:46:28 +0100</pubDate>
      <guid>https://ae3.ch/telegram-notification-on-successful-ssh-login/</guid>
      <description>&lt;p&gt;With the following script we monitor the SSH login on a server and send a notification via Telegram API.&lt;/p&gt;
&lt;p&gt;This way you will get a notification in real time when someone logs in to your server via SSH. For me this is a valuable security feature.&lt;/p&gt;
&lt;h1 id=&#34;telegram-notification-on-successful-ssh-login&#34;&gt;Telegram Notification on successful SSH Login&lt;/h1&gt;
&lt;h2 id=&#34;telegram-send-python-script&#34;&gt;telegram-send Python Script&lt;/h2&gt;
&lt;p&gt;First, we create the following Python script, which is used to send messages to Telegram&amp;rsquo;s API.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Fix macOS pssh logging caused by line buffering</title>
      <link>https://ae3.ch/fix-macos-pssh-logging-caused-by-line-buffering/</link>
      <pubDate>Wed, 07 Dec 2022 18:31:35 +0100</pubDate>
      <guid>https://ae3.ch/fix-macos-pssh-logging-caused-by-line-buffering/</guid>
      <description>&lt;p&gt;If you want to log the output of an SSH connection under macOS with pssh from Homebrew, the following error occurs:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;line buffering (buffering=1) isn&#39;t supported in binary mode&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;In the pssh command this happens when you define the &lt;code&gt;-o&lt;/code&gt; option for output.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;pssh -t 0 -p 10 -l root -h host.list -o logs &#39;command&#39;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;In order to log the output of the SSH session, we have to make a small adjustment to the Python psshlib.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
