summaryrefslogtreecommitdiff
path: root/sshkeys.html
diff options
context:
space:
mode:
authorMark McNally <mark@mcnally.je>2021-06-30 16:23:02 +0100
committerMark McNally <mark@mcnally.je>2021-06-30 16:23:02 +0100
commit0bc025bff8f4e66aef1997acfbd3db7167bb2cbd (patch)
tree4d70dacd7537c62951bddba0416d2e37b838240a /sshkeys.html
parentdadfca40f908a98962f92c2cce958848e05fa975 (diff)
Added styling for a "callout" style aside and added a callout about ssh
key file permissions
Diffstat (limited to 'sshkeys.html')
-rw-r--r--sshkeys.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/sshkeys.html b/sshkeys.html
index 14db22c..91ba1b7 100644
--- a/sshkeys.html
+++ b/sshkeys.html
@@ -76,6 +76,7 @@
</p>
</aside>
+
<p>
To test if this has worked, now try logging in normally to your server with ssh:
</p>
@@ -85,6 +86,22 @@
<p>
It should now let your log in without a password prompt!
</p>
+ <aside class=callout>
+ <p>
+ If you find that this does not work try running the following, make sure you are in the directory where the keys where created.
+ </p>
+ <p>
+ <code> chmod 700 .ssh/ </code>
+ </p>
+ <code> chmod 644 .ssh/id_rsa.pub </code>
+ <p>
+ <code> chmod 600 .ssh/id_rsa </code>
+ </p>
+ <code> chmod 644 .ssh/authorized_keys </code>
+ <p>
+ For whatever reason these files due not have the correct permissions set, as ssh is very picky about correct file permissions this can cause errors. The above will fix these.
+ </p>
+ </aside>
<h2>Disabling Password Logins for Security</h2>