<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Sshd on Niall Donaghy</title>
    <link>https://ndonaghy.com/tags/sshd/</link>
    <description>Recent content in Sshd on Niall Donaghy</description>
    <generator>Hugo</generator>
    <language>en-gb</language>
    <lastBuildDate>Tue, 07 Apr 2026 01:57:29 +0100</lastBuildDate>
    <atom:link href="https://ndonaghy.com/tags/sshd/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>OpenBSD sshd hardening with pf and sshguard</title>
      <link>https://ndonaghy.com/posts/openbsd-sshd-hardening/</link>
      <pubDate>Tue, 07 Apr 2026 01:57:29 +0100</pubDate>
      <guid>https://ndonaghy.com/posts/openbsd-sshd-hardening/</guid>
      <description>&lt;h1 id=&#34;goals&#34;&gt;Goals:&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;a sane sshd configuration&lt;/li&gt;&#xA;&lt;li&gt;a sane pf configuration&lt;/li&gt;&#xA;&lt;li&gt;optional: add sshguard (but recommended)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;setup-ssh-for-your-main-user&#34;&gt;setup SSH for your main user&lt;/h1&gt;&#xA;&lt;p&gt;Your main user is not root. :)&lt;/p&gt;&#xA;&lt;p&gt;Change to your regular user and setup SSH dirs:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;su - niall&#xA;mkdir -p /home/niall/.ssh&#xA;chmod 700 /home/niall/.ssh&#xA;chown niall:niall /home/niall/.ssh&#xA;# add pubkey(s) you want to be authorised for login&#xA;nano /home/niall/.ssh/authorized_keys&#xA;&amp;lt;paste in&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Default /etc/ssh/sshd_config has key-based login enabled, so test it now:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
