<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://doc.ycharbi.fr/index.php?action=history&amp;feed=atom&amp;title=Openssh_-_windows</id>
	<title>Openssh - windows - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://doc.ycharbi.fr/index.php?action=history&amp;feed=atom&amp;title=Openssh_-_windows"/>
	<link rel="alternate" type="text/html" href="https://doc.ycharbi.fr/index.php?title=Openssh_-_windows&amp;action=history"/>
	<updated>2026-06-01T17:35:06Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://doc.ycharbi.fr/index.php?title=Openssh_-_windows&amp;diff=1466&amp;oldid=prev</id>
		<title>Ycharbi : Page créée avec « Category:Réseau_windows  [https://fr.wikipedia.org/wiki/OpenSSH OpenSSH] est une implémentation libre du protocole [https://fr.wikipedia.org/wiki/Secure_Shell Secure Shell] (&#039;&#039;SSH&#039;&#039;) utilisée pour la gestion de systèmes distants. Le projet est géré par des développeurs tiers dans le cadre de la distribution &#039;&#039;OpenBSD&#039;&#039; (la fourche &#039;&#039;Microsoft&#039;&#039; se trouve dans [https://github.com/PowerShell/openssh-portable GitHub]). [https://learn.microsoft.com/fr-fr/windo... »</title>
		<link rel="alternate" type="text/html" href="https://doc.ycharbi.fr/index.php?title=Openssh_-_windows&amp;diff=1466&amp;oldid=prev"/>
		<updated>2023-07-18T20:02:54Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « &lt;a href=&quot;/index.php/Cat%C3%A9gorie:R%C3%A9seau_windows&quot; title=&quot;Catégorie:Réseau windows&quot;&gt;Category:Réseau_windows&lt;/a&gt;  [https://fr.wikipedia.org/wiki/OpenSSH OpenSSH] est une implémentation libre du protocole [https://fr.wikipedia.org/wiki/Secure_Shell Secure Shell] (&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;) utilisée pour la gestion de systèmes distants. Le projet est géré par des développeurs tiers dans le cadre de la distribution &amp;#039;&amp;#039;OpenBSD&amp;#039;&amp;#039; (la fourche &amp;#039;&amp;#039;Microsoft&amp;#039;&amp;#039; se trouve dans [https://github.com/PowerShell/openssh-portable GitHub]). [https://learn.microsoft.com/fr-fr/windo... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Réseau_windows]]&lt;br /&gt;
&lt;br /&gt;
[https://fr.wikipedia.org/wiki/OpenSSH OpenSSH] est une implémentation libre du protocole [https://fr.wikipedia.org/wiki/Secure_Shell Secure Shell] (&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;) utilisée pour la gestion de systèmes distants. Le projet est géré par des développeurs tiers dans le cadre de la distribution &amp;#039;&amp;#039;OpenBSD&amp;#039;&amp;#039; (la fourche &amp;#039;&amp;#039;Microsoft&amp;#039;&amp;#039; se trouve dans [https://github.com/PowerShell/openssh-portable GitHub]). [https://learn.microsoft.com/fr-fr/windows-server/administration/openssh/openssh_overview OpenSSH a été ajouté à Windows] à l’automne 2018 et est disponible pour &amp;#039;&amp;#039;Windows 10&amp;#039;&amp;#039; et &amp;#039;&amp;#039;Windows Server 2019&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039; est basé sur une architecture client-serveur où le système sur lequel travaille l’utilisateur est le client et le système distant géré est le serveur. &amp;#039;&amp;#039;OpenSSH&amp;#039;&amp;#039; comporte différents composants qui offrent une approche sécurisée (chiffrement et authentification) et directe de l’administration de système à distance, notamment :&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot; inline&amp;gt;sshd.exe&amp;lt;/syntaxhighlight&amp;gt; : composant de serveur &amp;#039;&amp;#039;SSH&amp;#039;&amp;#039; qui doit être exécuté sur le système géré à distance (serveur)&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot; inline&amp;gt;ssh.exe&amp;lt;/syntaxhighlight&amp;gt; : composant de client &amp;#039;&amp;#039;SSH&amp;#039;&amp;#039; qui est exécuté sur le système local de l’utilisateur (client)&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot; inline&amp;gt;ssh-keygen.exe&amp;lt;/syntaxhighlight&amp;gt; : génère, gère et convertit les clés d’authentification pour &amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot; inline&amp;gt;ssh-agent.exe&amp;lt;/syntaxhighlight&amp;gt; : stocke les clés privées utilisées pour l’authentification des clés publiques&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot; inline&amp;gt;ssh-add.exe&amp;lt;/syntaxhighlight&amp;gt; : ajoute des clés privées à la liste autorisée par le serveur&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot; inline&amp;gt;ssh-keyscan.exe&amp;lt;/syntaxhighlight&amp;gt; : aide à collecter les clés d’hôte &amp;#039;&amp;#039;SSH&amp;#039;&amp;#039; publiques à partir de différents ordinateurs hôtes&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot; inline&amp;gt;sftp.exe&amp;lt;/syntaxhighlight&amp;gt; : service qui fournit le [https://fr.wikipedia.org/wiki/SSH_File_Transfer_Protocol protocole Secure File Transfer] et est exécuté sur &amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot; inline&amp;gt;scp.exe&amp;lt;/syntaxhighlight&amp;gt; : utilitaire de copie de fichiers exécuté sur &amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Une documentation détaillée supplémentaire relative aux fonctionnalités courantes d{{&amp;#039;}}&amp;#039;&amp;#039;OpenSSH&amp;#039;&amp;#039; est disponible en ligne sur [https://www.openssh.com/manual.html OpenSSH.com]. Le document suivant traite de son utilisation sur &amp;#039;&amp;#039;Windows&amp;#039;&amp;#039; et est utilisable de la même manière que sur son implémentation [[Openssh|GNU/Linux]].&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
Il est possible d&amp;#039;installer l&amp;#039;outil via l{{&amp;#039;}}[https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse?tabs=gui interface graphique] mais je préfère personnellement me passer du clicodrome habituel et utiliser une console &amp;#039;&amp;#039;Powershell&amp;#039;&amp;#039; en administrateur.&lt;br /&gt;
&lt;br /&gt;
Vérification de la disponibilité de l&amp;#039;outil sur votre plateforme&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
Get-WindowsCapability -Online | Where-Object Name -like &amp;#039;OpenSSH*&amp;#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Le retour de la commande doit ressembler à ceci&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
Name  : OpenSSH.Client~~~~0.0.1.0&lt;br /&gt;
State : NotPresent&lt;br /&gt;
&lt;br /&gt;
Name  : OpenSSH.Server~~~~0.0.1.0&lt;br /&gt;
State : NotPresent&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Installation de la partie cliente&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Installation de la partie serveur&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Démarrage manuel du service&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
Start-Service sshd&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Démarrage automatique avec le système&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
Set-Service -Name sshd -StartupType &amp;#039;Automatic&amp;#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Une règle de pare-feu autorisant les connexions entrantes est censée être créée automatiquement. &amp;#039;&amp;#039;Microsoft&amp;#039;&amp;#039; propose une structure conditionnelle permettant de vérifier son effectivité et, si non, la créer le cas échéant&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
# Confirm the Firewall rule is configured. It should be created automatically by setup. Run the following to verify&lt;br /&gt;
if (!(Get-NetFirewallRule -Name &amp;quot;OpenSSH-Server-In-TCP&amp;quot; -ErrorAction SilentlyContinue | Select-Object Name, Enabled)) {&lt;br /&gt;
    Write-Output &amp;quot;Firewall Rule &amp;#039;OpenSSH-Server-In-TCP&amp;#039; does not exist, creating it...&amp;quot;&lt;br /&gt;
    New-NetFirewallRule -Name &amp;#039;OpenSSH-Server-In-TCP&amp;#039; -DisplayName &amp;#039;OpenSSH Server (sshd)&amp;#039; -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22&lt;br /&gt;
} else {&lt;br /&gt;
    Write-Output &amp;quot;Firewall rule &amp;#039;OpenSSH-Server-In-TCP&amp;#039; has been created and exists.&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
La commande &amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot; inline&amp;gt;netstat -a -o -n -b&amp;lt;/syntaxhighlight&amp;gt; permet de confirmer l&amp;#039;ouverture d&amp;#039;un socket &amp;#039;&amp;#039;TCP&amp;#039;&amp;#039; sur le port &amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot; inline&amp;gt;22&amp;lt;/syntaxhighlight&amp;gt; et donc la bonne écoute du service sur le réseau. Il ne reste plus qu&amp;#039;à s&amp;#039;y connecter via un outil client dédié.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
* https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse?tabs=powershell&lt;/div&gt;</summary>
		<author><name>Ycharbi</name></author>
	</entry>
</feed>