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