Nettoyage SSH

This commit is contained in:
Jérémy Lecour 2017-06-20 01:47:00 +02:00 committed by Jérémy Lecour
parent f6019d2388
commit 4c95e1c11b

View file

@ -853,20 +853,20 @@ ansible 2.2.1.0
<section>
<section>
<h2>OpenSSH</h2>
<p>
<ul>
<li> SSH: Secure Shell</li>
<li> Outils:
Client et serveur pour connexions shell à distance.
</section>
<section>
<h3> SSH: Secure Shell</h3>
<ul>
<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>
<h2>Configuration du serveur</h2>
<pre>
<code data-trim class="hljs nohighlight"># cat /etc/ssh/sshd_config</code>
Port 22
Port 2222
@ -878,8 +878,7 @@ Match Address 192.0.2.1,192.0.2.2
PasswordAuthentication yes
Match User foo,bar
PasswordAuthentication no
</code>
<code>
<code data-trim class="hljs nohighlight">
$ ssh-keygen
$ cat .ssh/id_rsa.pub
$ vim .ssh/authorized_keys
@ -887,11 +886,11 @@ $ vim .ssh/authorized_keys
</pre>
</section>
<section>
<h2>OpenSSH (suite)</h2>
<h2>Agent SSH</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>
<code data-trim class="hljs nohighlight">$ ssh-agent</code>
<code data-trim class="hljs nohighlight">$ scp fichier-local identité-distante@hôte-distant:chemin/fichier</code>
<code data-trim class="hljs nohighlight">$ scp identité-distante@hôte-distant:chemin/fichier fichier-local</code>
</pre>
</section>
</section>
@ -925,7 +924,7 @@ rsync -av --delete
cp -al
</code>
</pre>
<p>EvoBackup :<br><a href="https://forge.evolix.org/projetcs/evobackup">https://forge.evolix.org/projetcs/evobackup</a></p>
<p>EvoBackup :<br><a href="https://forge.evolix.org/projetcs/evobackup">forge.evolix.org/projetcs/evobackup</a></p>
</section>
</section>