History of Coding - cross machine security
<p>Found a useful article for this on <a href="https://www.suse.com/support/kb/doc/?id=000017516">SUSE documentation</a> now to pick it to bits and produce a version for my local use. First problem is the key selection is now deprecated anyway.</p>
<p>One thing I did forget was enabling ssh login to the root account. Yes I know it's a 'security risk', but it really is easier when one is running servers where most of he actions require sudo level passwords, so lets just skip to the chase.</p>
<pre>
sudo nano /etc/ssh/sshd_config
PermitRootLogin yes
ctrl-O ctrl-X to save
sudo systemctl restart sshd
</pre>
<p>Then I can at least log out and in again as root. Next step to make both accounts auto-login</p>
<pre>
ssh-keygen -t ed25519 -N &#39;&#39; -f ~/.ssh/id_ed25519</pre>
<p>But what I missed previously was that I only need the one key per machine! So having created a more modern ed25519 key, all I need to do is copy it to the other account and then tell both accounts on the other two machines ...</p>
<pre>
<code>ssh-copy-id root@srv10</code>
<code>ssh-copy-id lester@srv10</code>
<code>ssh-copy-id root@desktop</code>
<code>ssh-copy-id lester@desktop</code></pre>
<p> </p>
<p>One thing I did forget was enabling ssh login to the root account. Yes I know it's a 'security risk', but it really is easier when one is running servers where most of he actions require sudo level passwords, so lets just skip to the chase.</p>
<pre>
sudo nano /etc/ssh/sshd_config
PermitRootLogin yes
ctrl-O ctrl-X to save
sudo systemctl restart sshd
</pre>
<p>Then I can at least log out and in again as root. Next step to make both accounts auto-login</p>
<pre>
ssh-keygen -t ed25519 -N &#39;&#39; -f ~/.ssh/id_ed25519</pre>
<p>But what I missed previously was that I only need the one key per machine! So having created a more modern ed25519 key, all I need to do is copy it to the other account and then tell both accounts on the other two machines ...</p>
<pre>
<code>ssh-copy-id root@srv10</code>
<code>ssh-copy-id lester@srv10</code>
<code>ssh-copy-id root@desktop</code>
<code>ssh-copy-id lester@desktop</code></pre>
<p> </p>
