A Guide to Setting Up OpenSSH Server on Windows 11

|

|

This content guides students and new users on installing the built-in OpenSSH Server in Windows 11 to enable secure SSH connections. After installation, OpenSSH Server requires manual activation, which allows access connections and users’ account access without needing configuration. Differences may arise in managing or configuring the server, although the setup process remains similar to…

This post shows students and new users how to install Windows 11 built-in OpenSSH Server to allow Secure SSH connections.

Windows 11 has a built-in OpenSSH Server that system administrators can install and enable with a few clicks. Windows 11 has a built-in SSH Client installed and is ready to connect to any SSH server.

So, if you need OpenSSH to allow secure connections in Windows environments, you don’t need to go very far.

The Windows version works the same for those who have worked with OpenSSH Servers in other environments.

Installing it is quite easy, but figuring out how to configure or manage it is where you may run into trouble. The good thing is, out of the box, when started, OpenSSH Server will allow access connections and provide access to users’ accounts. There’s no configuration needed to get users to connect.

If you want to implement an additional setup, you may need to find documentation showing you how to configure additional settings.

The good thing about installing and enabling OpenSSH Server in Windows 11 is that the process hasn’t changed since Windows 10, and the steps below show you how to do that.

To enable OpenSSH Server in Windows 11, follow the steps below.

How to use OpenSSH Server in Windows 11 to allow connections

If you want to use Windows 11’s built-in OpenSSH Server, follow the steps below to install it.

Windows 11 has a centralized location for the majority of its settings. Everything can be done, from system configurations to creating new users and updating Windows from its System Settings pane.

To get to System Settings, you can use the Windows key + I shortcut or click on Start ==> Settings, as shown in the image below:

Alternatively, you can use the search box on the taskbar and search for Settings. Then select to open it.

Windows Settings pane should look similar to the image below. In Windows Settings, click Apps and select Optional Features on the right pane of your screen, as shown in the image below.

Click Add an optional Feature View features as highlighted below on the Optional Features settings pane.

Next, in the search box, type OpenSSH Server, select it from the list to install, and click Next.

Finally, click Install to begin the installation.

After a brief moment, depending on the speed of your computer and the network, OpenSSH Server should be installed.

By default, OpenSSH Server is set not to run. You must manually start up its service to run.

How to start OpenSSH Server in Windows 11

Now that the OpenSSH Server is installed open the Windows Services console app by searching for Services and selecting it to open.

When the Services console opens, look for OpenSSH SSH Server on the list, then right-click and select Start to start it up.

When started, it should change from Manual to Running.

How to connect to Windows OpenSSH Server

Now that the server is installed and running, use any SSH client to connect to the Windows server. For this post, we’re using Windows 11 built-in OpenSSH Client, which is installed and enabled by default.

Open the Windows Command Prompt console, then run the SSH command with the username and IP address of the Windows server.

ssh richard@10.0.2.18

That will allow you to accept the server key and establish a connection.

Type in the account password, and access should be granted.

That should do it!

This post showed you how to install OpenSSH Server in Windows 11. If you find any error above, please use the comment form below to report.


Discover more from Geek Rewind

Subscribe to get the latest posts to your email.

Like this:



4 responses to “A Guide to Setting Up OpenSSH Server on Windows 11”

  1. Hariharan Avatar
    Hariharan

    how to connect ssh tunnel in cmd?

  2. Firsh Avatar
    Firsh

    It says “Couldn’t install” 🙁 Is there a dependency? A running service maybe?

  3. melisa Avatar
    melisa

    hi richard
    what is the accoumd password here?

  4. EselDompteur Avatar
    EselDompteur

    @melisa the Password is the same as you’ve set at your account on the machine to enter it locally

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Blog at WordPress.com.

Discover more from Geek Rewind

Subscribe now to keep reading and get access to the full archive.

Continue reading