<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>svnscha - windows</title>
    <subtitle>automating annoying tasks, sharing tips, and embracing less frustration</subtitle>
    <link rel="self" type="application/atom+xml" href="https://svnscha.de/tags/windows/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://svnscha.de"/>
    <generator uri="https://astro.build/">Astro</generator>
    <updated>2025-04-03T00:00:00+00:00</updated>
    <id>https://svnscha.de/tags/windows/atom.xml</id>
    <entry xml:lang="en">
        <title>Windows: Install integrated OpenSSH Server</title>
        <published>2025-04-03T00:00:00+00:00</published>
        <updated>2025-04-03T00:00:00+00:00</updated>
        <author>
          <name>Sven Scharmentke</name>
        </author>
        <link rel="alternate" type="text/html" href="https://svnscha.de/posts/windows-openssh-server/"/>
        <id>https://svnscha.de/posts/windows-openssh-server/</id>
        <summary type="html">Enable built-in OpenSSH server on Windows for remote access and VSCode Remote development</summary>
        <content type="html" xml:base="https://svnscha.de/posts/windows-openssh-server/">&lt;p&gt;Tired of everyone SSHing into Linux? Flip the script: SSH into Windows from your Linux box. Works great with VSCode Remote too. Here's how to enable the built-in OpenSSH server on Windows.&lt;/p&gt;
&lt;h3 id=&quot;step-1-check-installed-openssh-components&quot;&gt;Step 1: Check Installed OpenSSH Components&lt;/h3&gt;
&lt;p&gt;First, open a PowerShell window with administrator privileges. Let's see what's already installed:&lt;/p&gt;
&lt;pre class=&quot;astro-code dark-plus&quot; style=&quot;background-color:#1E1E1E;color:#D4D4D4; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;bash&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#DCDCAA&quot;&gt;Get-WindowsCapability&lt;/span&gt;&lt;span style=&quot;color:#569CD6&quot;&gt; -Online&lt;/span&gt;&lt;span style=&quot;color:#D4D4D4&quot;&gt; | &lt;/span&gt;&lt;span style=&quot;color:#DCDCAA&quot;&gt;Where-Object&lt;/span&gt;&lt;span style=&quot;color:#CE9178&quot;&gt; Name&lt;/span&gt;&lt;span style=&quot;color:#569CD6&quot;&gt; -like&lt;/span&gt;&lt;span style=&quot;color:#CE9178&quot;&gt; 'OpenSSH*'&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You might see output indicating that the client is installed but not the server:&lt;/p&gt;
&lt;pre class=&quot;astro-code dark-plus&quot; style=&quot;background-color:#1E1E1E;color:#D4D4D4; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Name  : OpenSSH.Client~~~~0.0.1.0&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;State : Installed&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Name  : OpenSSH.Server~~~~0.0.1.0&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;State : NotPresent&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;step-2-install-the-openssh-server&quot;&gt;Step 2: Install the OpenSSH Server&lt;/h3&gt;
&lt;p&gt;If the server isn't present, let's bring it on board. Run:&lt;/p&gt;
&lt;pre class=&quot;astro-code dark-plus&quot; style=&quot;background-color:#1E1E1E;color:#D4D4D4; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;bash&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#DCDCAA&quot;&gt;Add-WindowsCapability&lt;/span&gt;&lt;span style=&quot;color:#569CD6&quot;&gt; -Online&lt;/span&gt;&lt;span style=&quot;color:#569CD6&quot;&gt; -Name&lt;/span&gt;&lt;span style=&quot;color:#CE9178&quot;&gt; OpenSSH.Server~~~~0.0.1.0&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;step-3-start-and-enable-the-ssh-server&quot;&gt;Step 3: Start and Enable the SSH Server&lt;/h3&gt;
&lt;p&gt;Now, let's get the &lt;code&gt;sshd&lt;/code&gt; service up and running:&lt;/p&gt;
&lt;pre class=&quot;astro-code dark-plus&quot; style=&quot;background-color:#1E1E1E;color:#D4D4D4; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;bash&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#DCDCAA&quot;&gt;Start-Service&lt;/span&gt;&lt;span style=&quot;color:#CE9178&quot;&gt; sshd&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And ensure it starts automatically with Windows:&lt;/p&gt;
&lt;pre class=&quot;astro-code dark-plus&quot; style=&quot;background-color:#1E1E1E;color:#D4D4D4; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;bash&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#DCDCAA&quot;&gt;Set-Service&lt;/span&gt;&lt;span style=&quot;color:#569CD6&quot;&gt; -Name&lt;/span&gt;&lt;span style=&quot;color:#CE9178&quot;&gt; sshd&lt;/span&gt;&lt;span style=&quot;color:#569CD6&quot;&gt; -StartupType&lt;/span&gt;&lt;span style=&quot;color:#CE9178&quot;&gt; 'Automatic'&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That's it.&lt;/p&gt;
</content>
    </entry>
</feed>
