Added styling for a "callout" style aside and added a callout about ssh
key file permissions
This commit is contained in:
parent
dadfca40f9
commit
0bc025bff8
17
sshkeys.html
17
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>
|
||||
|
||||
|
|
|
@ -126,11 +126,19 @@ aside code {
|
|||
color: green ;
|
||||
}
|
||||
|
||||
/* .callout here is refencing any aside given the class name callout
|
||||
* An example being: <aside class="callout"> */
|
||||
aside.callout {
|
||||
border: solid 1px orange;
|
||||
}
|
||||
|
||||
|
||||
.cnp {
|
||||
width: 100% ;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* This "@media" block defines rules that will only be applied when the minimum
|
||||
* width of the screen is 55em or greater. In essence, they are settings that
|
||||
* only apply on normal weide screens, but *not* phones and low res monitors.
|
||||
|
|
Loading…
Reference in New Issue