Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:ssh [2017/08/24 06:56] lamboringolinux:ssh [2020/01/23 11:16] (current) – [Server side] lamboringo
Line 29: Line 29:
  
 Copy ''id_rsa.pub'' to ~/.ssh and add it to ''authorized_keys'' or ''authorized_keys2'': Copy ''id_rsa.pub'' to ~/.ssh and add it to ''authorized_keys'' or ''authorized_keys2'':
-  cat .id_rsa.pub >> authorized_keys2+  cat .id_rsa.pub >> authorized_keys
  
-Ensure ''authorized_keys2'' is rw only for user: +Ensure ''authorized_keys'' is rw only for user: 
-  chmod 600 authorized_keys2+  chmod 600 authorized_keys
  
 ===== Troubleshooting ===== ===== Troubleshooting =====