<?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>Sshd on Details...</title>
    <link>https://www.deepreflect.net/tags/sshd/</link>
    <description>Recent content in Sshd on Details...</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>Copyright © 2003 - 2026 Leonardo Rizzi</copyright>
    <lastBuildDate>Tue, 30 Jun 2026 03:28:29 +0200</lastBuildDate>
    <atom:link href="https://www.deepreflect.net/tags/sshd/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>.ssh - Permission</title>
      <link>https://www.deepreflect.net/2010/09/09/ssh-permission/</link>
      <pubDate>Thu, 09 Sep 2010 23:24:41 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=946</guid> 
      <description>&lt;p&gt;If any of the files (or directories leading up to the files) have permissions set too loose, the connection will fail. Permission errors may be logged on the server side by the sshd(8) daemon.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Authentication refused: bad ownership or modes for directory …&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;In most cases, potential permission problems can be solved by restricting down access to the SSH configuration files. Permission changes to the home directory might be needed, though restricted rights may break other things.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If any of the files (or directories leading up to the files) have permissions set too loose, the connection will fail. Permission errors may be logged on the server side by the sshd(8) daemon.</p>
<p><code>Authentication refused: bad ownership or modes for directory …</code></p>
<p>In most cases, potential permission problems can be solved by restricting down access to the SSH configuration files. Permission changes to the home directory might be needed, though restricted rights may break other things.</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>server$ chmod go-w ~/
</span></span><span style="display:flex;"><span>server$ chmod 700 ~/.ssh
</span></span><span style="display:flex;"><span>server$ chmod 600 ~/.ssh/authorized_keys
</span></span></code></pre></div>]]></content:encoded>
    </item>
    <item>
      <title>OpenSSH - Generate server key</title>
      <link>https://www.deepreflect.net/2009/08/11/openssh-generate-server-key/</link>
      <pubDate>Tue, 11 Aug 2009 22:08:55 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=680</guid> 
      <description>&lt;p&gt;OpenSSH require different keys depending if you use SSH1 or SSH2 protocol. All keys are generated by &amp;ldquo;ssh-keygen&amp;rdquo; commad, that one should be available on your system with the ssh package. Default key lengths are also appropriate (2048 bits for rsa and 1024 bits for dsa)
For SSH1 protocol, you need a rsa1 key generated has follow:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# ssh-keygen -q -f /etc/ssh/ssh_host_key -N &#39;&#39; -t rsa1&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;For SSH2 protocol, you need two keys, one rsa key and one dsa key generated has follow:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>OpenSSH require different keys depending if you use SSH1 or SSH2 protocol. All keys are generated by &ldquo;ssh-keygen&rdquo; commad, that one should be available on your system with the ssh package. Default key lengths are also appropriate (2048 bits for rsa and 1024 bits for dsa)
For SSH1 protocol, you need a rsa1 key generated has follow:</p>
<p><code># ssh-keygen -q -f /etc/ssh/ssh_host_key -N '' -t rsa1</code></p>
<p>For SSH2 protocol, you need two keys, one rsa key and one dsa key generated has follow:</p>
<p><code># ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa</code>
<code># ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa</code></p>
]]></content:encoded>
    </item>
    <item>
      <title>SSH key</title>
      <link>https://www.deepreflect.net/2008/08/30/ssh-key/</link>
      <pubDate>Sat, 30 Aug 2008 16:08:38 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=81</guid> 
      <description>&lt;p&gt;Nel caso succeda che il demone sshd non parta per i seguenti motivi:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-gdscript3&#34; data-lang=&#34;gdscript3&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Could &lt;span style=&#34;color:#f92672&#34;&gt;not&lt;/span&gt; load host key: &lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;etc&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;ssh&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;ssh_host_key
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Could &lt;span style=&#34;color:#f92672&#34;&gt;not&lt;/span&gt; load host key: &lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;etc&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;ssh&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;ssh_host_dsa_key
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Disabling protocol version &lt;span style=&#34;color:#ae81ff&#34;&gt;1.&lt;/span&gt; Could &lt;span style=&#34;color:#f92672&#34;&gt;not&lt;/span&gt; load host key
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Disabling protocol version &lt;span style=&#34;color:#ae81ff&#34;&gt;2.&lt;/span&gt; Could &lt;span style=&#34;color:#f92672&#34;&gt;not&lt;/span&gt; load host key
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Con questi comandi si generano le chiavi host:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
      <content:encoded><![CDATA[<p>Nel caso succeda che il demone sshd non parta per i seguenti motivi:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-gdscript3" data-lang="gdscript3"><span style="display:flex;"><span>Could <span style="color:#f92672">not</span> load host key: <span style="color:#f92672">/</span>etc<span style="color:#f92672">/</span>ssh<span style="color:#f92672">/</span>ssh_host_key
</span></span><span style="display:flex;"><span>Could <span style="color:#f92672">not</span> load host key: <span style="color:#f92672">/</span>etc<span style="color:#f92672">/</span>ssh<span style="color:#f92672">/</span>ssh_host_dsa_key
</span></span><span style="display:flex;"><span>Disabling protocol version <span style="color:#ae81ff">1.</span> Could <span style="color:#f92672">not</span> load host key
</span></span><span style="display:flex;"><span>Disabling protocol version <span style="color:#ae81ff">2.</span> Could <span style="color:#f92672">not</span> load host key
</span></span></code></pre></div><p>Con questi comandi si generano le chiavi host:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
</span></span><span style="display:flex;"><span>ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
</span></span><span style="display:flex;"><span>ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key
</span></span></code></pre></div>]]></content:encoded>
    </item>
  </channel>
</rss>
