diff --git a/reveal/shell.html b/reveal/shell.html index 4810208..4097595 100644 --- a/reveal/shell.html +++ b/reveal/shell.html @@ -69,13 +69,14 @@
-ps, kill, pstree -fg, bg -diff, patch -tar, dd -gzip/gunzip, bzip2/bunzip2, xz/unxz -mount/umount, man -mkfs, fsck, tune2fs +

Shell : système

+
  • ps, kill, pstree
  • +
  • fg, bg
  • +
  • diff, patch
  • +
  • tar, dd
  • +
  • gzip/gunzip, bzip2/bunzip2, xz/unxz
  • +
  • mount/umount, man
  • +
  • mkfs, fsck, tune2fs
  • @@ -84,9 +85,7 @@ mkfs, fsck, tune2fs
  • cd, cp, mv, rm, touch
  • touch, mkdir, mktemp, ln
  • sort, wc, uniq, tr
  • -
  • grep, find, for, while, xargs
  • echo, cat, head, tail, read
  • -
  • if, test, exit, seq, while, for, case
  • @@ -97,6 +96,7 @@ alias/unalias
    Commandes avancées +
  • grep, find
  • /bin/dash zsh sed / awk xargs @@ -129,6 +129,8 @@ echo $((1+1)) ${i.%ext} ${i#/home/} +
  • if, test, exit, seq, while, for, case
  • +
    diff --git a/reveal/sysadmin.html b/reveal/sysadmin.html index 3d423bf..507efbd 100644 --- a/reveal/sysadmin.html +++ b/reveal/sysadmin.html @@ -844,11 +844,56 @@ ansible 2.2.1.0
    -

    ssh

    +

    OpenSSH

    + +- SSH: Secure Shell +- Outils: + Client: ssh, scp, sftp + Serveur: ssh-add, ssh-agent, ssh-keygen, ssh-keysign, ssh-keyscan, et sftp-server +- Configuration de sshd_config + +Port 22 +Port 2222 + +PermitRootLogin yes/no/without-password + +AllowUsers foo bar baz + +Match Address 192.0.2.1,192.0.2.2 + PasswordAuthentication yes +Match User foo,bar + PasswordAuthentication no + +$ ssh-keygen +$ cat .ssh/id_rsa.pub +$ vim .ssh/authorized_keys +$ ssh-agent + +scp fichier-local identité-distante@hôte-distant:chemin/fichier +scp identité-distante@hôte-distant:chemin/fichier fichier-local +

    sauvegardes

    +File-system (totales ou incrémentales) + +tar -cpvf +cpio, pax + +dump/restore, partimage +dd + +umount /file-system +dump 0uf /dev/rst0 /file-system + + +LA solution magique... + +rsync -av --delete +cp -al + +EvoBackup : https://forge.evolix.org/projetcs/evobackup