mef openSSH + sauvegarde

This commit is contained in:
Sebastien Dubois 2017-06-20 01:39:02 +02:00
parent f936318298
commit cf6ff14265

View file

@ -844,14 +844,22 @@ ansible 2.2.1.0
</section> </section>
<section> <section>
<section>
<h2>OpenSSH</h2> <h2>OpenSSH</h2>
<p>
- SSH: Secure Shell <ul>
- Outils: <li> SSH: Secure Shell</li>
Client: ssh, scp, sftp <li> Outils:
Serveur: ssh-add, ssh-agent, ssh-keygen, ssh-keysign, ssh-keyscan, et sftp-server <ul>
- Configuration de sshd_config <li>Client: ssh, scp, sftp</li>
<li>Serveur: ssh-add, ssh-agent, ssh-keygen, ssh-keysign, ssh-keyscan, et sftp-server</li>
</ul>
</li>
</ul>
</section>
<section>
<h2>Configuration de sshd_config</h2>
<pre>
Port 22 Port 22
Port 2222 Port 2222
@ -863,37 +871,55 @@ Match Address 192.0.2.1,192.0.2.2
PasswordAuthentication yes PasswordAuthentication yes
Match User foo,bar Match User foo,bar
PasswordAuthentication no PasswordAuthentication no
</code>
<code>
$ ssh-keygen $ ssh-keygen
$ cat .ssh/id_rsa.pub $ cat .ssh/id_rsa.pub
$ vim .ssh/authorized_keys $ vim .ssh/authorized_keys
$ ssh-agent </code>
</pre>
scp fichier-local identité-distante@hôte-distant:chemin/fichier </section>
scp identité-distante@hôte-distant:chemin/fichier fichier-local <section>
<h2>OpenSSH (suite)</h2>
<pre>
<code>$ ssh-agent</code>
<code>scp fichier-local identité-distante@hôte-distant:chemin/fichier</code>
<code>scp identité-distante@hôte-distant:chemin/fichier fichier-local</code>
</pre>
</section>
</section> </section>
<section> <section>
<h2>sauvegardes</h2> <section>
<h2>Sauvegardes</h2>
</section>
<section>
<p>
File-system (totales ou incrémentales) File-system (totales ou incrémentales)
<pre>
<code>
tar -cpvf tar -cpvf
cpio, pax cpio, pax
dump/restore, partimage dump/restore, partimage
dd dd
</code>
<code>
umount /file-system umount /file-system
</code>
<code>
dump 0uf /dev/rst0 /file-system dump 0uf /dev/rst0 /file-system
</code>
</section>
LA solution magique... <section>
<h2>LA solution magique...</h2>
<pre>
<code>
rsync -av --delete rsync -av --delete
cp -al cp -al
</code>
EvoBackup : https://forge.evolix.org/projetcs/evobackup </pre>
<p>EvoBackup :<br><a href="https://forge.evolix.org/projetcs/evobackup">https://forge.evolix.org/projetcs/evobackup</a></p>
</section>
</section> </section>
<section> <section>