User Tools

Site Tools


clients:secure_shell

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
clients:secure_shell [2020/06/12 03:01] Sean Rhoneclients:secure_shell [2021/09/30 23:20] (current) Sean Rhone
Line 30: Line 30:
  
   ssh-copy-id 'espionage724'@'x'   ssh-copy-id 'espionage724'@'x'
 +
 +====== Force Public Key Login ======
 +
 +  * [[https://wiki.archlinux.org/title/OpenSSH#Force_public_key_authentication|ArchWiki]]
 +
 +  sudo -e '/etc/ssh/sshd_config.d/pubkey-only-custom.conf'
 +
 +<code>
 +PasswordAuthentication no
 +AuthenticationMethods publickey</code>
  
 ====== Manage Keys ====== ====== Manage Keys ======
Line 37: Line 47:
 **** ****
  
-  tar -cvzf ~/'Documents/'$(date +%Y-%m-%d)'-'$HOSTNAME'-ssh-keys.tar.gz' -C ~ '.ssh' && ls ~/'Documents/'*'-ssh-keys.tar.gz' && sync+  tar -cvzf ~/'Documents/'$(date +%Y-%m-%d)'-ssh-keys.tar.gz' -C ~ '.ssh' && ls ~/'Documents/'*'-ssh-keys.tar.gz' && sync
  
 ===== Restore ===== ===== Restore =====
Line 43: Line 53:
 **** ****
  
-  ls ~/'Documents/'*'-ssh-keys.tar.gz' && rm -Rf ~/'.ssh' && tar -xvzf ~/'Documents/'*'-'$HOSTNAME'-ssh-keys.tar.gz' -C ~ '.ssh' && sync+  ls ~/'Documents/'*'-ssh-keys.tar.gz' && rm -Rf ~/'.ssh' && tar -xvzf ~/'Documents/'*'-ssh-keys.tar.gz' -C ~ '.ssh' && sync
/var/www/wiki/data/attic/clients/secure_shell.1591945261.txt.gz · Last modified: 2020/06/12 03:01 by Sean Rhone