Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
student:utilities:start:keypairs [2024/02/13 10:00] stewarmcstudent:utilities:start:keypairs [2024/04/02 13:52] – Set permissions on ~/.ssh and ~/.ssh/authorized_keys morrispj
Line 33: Line 33:
 <code bash> <code bash>
 cat id_rsa.pub >> ~/.ssh/authorized_keys cat id_rsa.pub >> ~/.ssh/authorized_keys
 +</code>
 +
 +If the ~/.ssh directory does not exist you can create it. SSH has strict permission requirements on these files:
 +<code>
 +mkdir ~/.ssh
 +chmod 700 ~/.ssh
 +touch ~/.ssh/authorized_keys
 +chmod 600 ~/.ssh/authorized_keys
 </code> </code>