ajout shell + contenu ssh + sauvegardes
This commit is contained in:
parent
4c83ee8196
commit
7b7aa27d8e
|
@ -69,13 +69,14 @@
|
|||
</section>
|
||||
|
||||
<section>
|
||||
ps, kill, pstree
|
||||
fg, bg
|
||||
diff, patch
|
||||
tar, dd
|
||||
gzip/gunzip, bzip2/bunzip2, xz/unxz
|
||||
mount/umount, man
|
||||
mkfs, fsck, tune2fs
|
||||
<h2>Shell : système</h2>
|
||||
<li>ps, kill, pstree</li>
|
||||
<li>fg, bg</li>
|
||||
<li>diff, patch</li>
|
||||
<li>tar, dd</li>
|
||||
<li>gzip/gunzip, bzip2/bunzip2, xz/unxz</li>
|
||||
<li>mount/umount, man</li>
|
||||
<li>mkfs, fsck, tune2fs</li>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
|
@ -84,9 +85,7 @@ mkfs, fsck, tune2fs
|
|||
<li>cd, cp, mv, rm, touch</li>
|
||||
<li>touch, mkdir, mktemp, ln</li>
|
||||
<li>sort, wc, uniq, tr</li>
|
||||
<li>grep, find, for, while, xargs</li>
|
||||
<li>echo, cat, head, tail, read</li>
|
||||
<li>if, test, exit, seq, while, for, case</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
|
@ -97,6 +96,7 @@ alias/unalias
|
|||
<section>
|
||||
Commandes avancées
|
||||
|
||||
<li>grep, find</li>
|
||||
/bin/dash zsh
|
||||
sed / awk
|
||||
xargs
|
||||
|
@ -129,6 +129,8 @@ echo $((1+1))
|
|||
${i.%ext}
|
||||
${i#/home/}
|
||||
|
||||
<li>if, test, exit, seq, while, for, case</li>
|
||||
|
||||
</section>
|
||||
|
||||
<section>
|
||||
|
|
|
@ -844,11 +844,56 @@ ansible 2.2.1.0
|
|||
</section>
|
||||
|
||||
<section>
|
||||
<h2>ssh</h2>
|
||||
<h2>OpenSSH</h2>
|
||||
|
||||
- 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
|
||||
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>sauvegardes</h2>
|
||||
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
|
||||
</section>
|
||||
|
||||
<section>
|
||||
|
|
Loading…
Reference in New Issue