<?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-04-17T03:36:22Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.40.0</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] (''SSH'') 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 ''OpenBSD'' (la fourche ''Microsoft'' 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] (''SSH'') 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 ''OpenBSD'' (la fourche ''Microsoft'' 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 ''Windows 10'' et ''Windows Server 2019''.&lt;br /&gt;
&lt;br /&gt;
''SSH'' 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. ''OpenSSH'' 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 ''SSH'' 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 ''SSH'' 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 ''SSH''&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 ''SSH'' 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 ''SSH''&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 ''SSH''&lt;br /&gt;
&lt;br /&gt;
Une documentation détaillée supplémentaire relative aux fonctionnalités courantes d{{'}}''OpenSSH'' est disponible en ligne sur [https://www.openssh.com/manual.html OpenSSH.com]. Le document suivant traite de son utilisation sur ''Windows'' 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'installer l'outil via l{{'}}[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 ''Powershell'' en administrateur.&lt;br /&gt;
&lt;br /&gt;
Vérification de la disponibilité de l'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 'OpenSSH*'&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 'Automatic'&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. ''Microsoft'' 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 'OpenSSH-Server-In-TCP' does not exist, creating it...&amp;quot;&lt;br /&gt;
    New-NetFirewallRule -Name 'OpenSSH-Server-In-TCP' -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22&lt;br /&gt;
} else {&lt;br /&gt;
    Write-Output &amp;quot;Firewall rule 'OpenSSH-Server-In-TCP' 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'ouverture d'un socket ''TCP'' 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'à s'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>