Nettoyage SSH
This commit is contained in:
parent
f6019d2388
commit
4c95e1c11b
|
@ -852,21 +852,21 @@ ansible 2.2.1.0
|
|||
|
||||
<section>
|
||||
<section>
|
||||
<h2>OpenSSH</h2>
|
||||
<p>
|
||||
<ul>
|
||||
<li> SSH: Secure Shell</li>
|
||||
<li> Outils:
|
||||
<h2>OpenSSH</h2>
|
||||
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>
|
||||
<pre>
|
||||
<h2>Configuration du serveur</h2>
|
||||
<pre>
|
||||
<code data-trim class="hljs nohighlight"># cat /etc/ssh/sshd_config</code>
|
||||
Port 22
|
||||
Port 2222
|
||||
|
||||
|
@ -878,27 +878,26 @@ 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
|
||||
</code>
|
||||
</pre>
|
||||
</code>
|
||||
</pre>
|
||||
</section>
|
||||
<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>
|
||||
<h2>Agent SSH</h2>
|
||||
<pre>
|
||||
<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>
|
||||
|
||||
<section>
|
||||
<section>
|
||||
<h2>Sauvegardes</h2>
|
||||
<h2>Sauvegardes</h2>
|
||||
</section>
|
||||
<section>
|
||||
<p>
|
||||
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue