Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(changelog): instances-added-openssh-server-is-now-enabled-on-window 2025-02-04 #4350

Merged
merged 5 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: OpenSSH server now preinstalled on Windows 2022 images
status: added
author:
fullname: 'Join the #instances channel on Slack.'
url: 'https://slack.scaleway.com'
date: 2025-02-04
category: compute
product: instances
---

The latest release of **Windows Server 2022** and **Windows Server 2022 Core** images now includes the **OpenSSH Server** and **OpenSSH Client** packages by default.
The **OpenSSH Server** is installed but **disabled by default** for security reasons. To enable it at Instance creation, add the tag `with-ssh` when launching your Instance.
[Read the full documentation for more details](/instances/how-to/enable-openssh-windows/)

4 changes: 4 additions & 0 deletions menu/navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1331,6 +1331,10 @@
"label": "Send emails from your Instance",
"slug": "send-emails-from-your-instance"
},
{
"label": "Enable OpenSSH server on Windows",
"slug": "enable-openssh-windows"
},
{
"label": "Use placement groups",
"slug": "use-placement-groups"
Expand Down
46 changes: 46 additions & 0 deletions pages/instances/how-to/enable-openssh-windows.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
meta:
title: How to enable the OpenSSH server on Windows 2022 Instances
description: This page explains how to enable the OpenSSH serveron Windows 2022 Instances
content:
h1: How to enable the OpenSSH server on Windows 2022 Instances
paragraph: This page explains how to enable the OpenSSH server on Windows 2022 Instances
tags: windows2022 openssh
dates:
validation: 2025-02-04
posted: 2025-02-04
categories:
- instances
- compute
---

The latest release of **Windows Server 2022** and **Windows Server 2022 Core** images includes the **OpenSSH Server** and **OpenSSH Client** packages by default.

<Message type="tip">
- The **OpenSSH Server** is installed but **disabled by default** for security reasons.
- To enable it at Instance creation, add the tag `with-ssh` when launching your Instance.
</Message>

## Enabling OpenSSH at Instance creation

Use the following CLI command to create a new Instance with OpenSSH Server enabled:

```sh
scw instance server create name=win2k22-core image=windows-server-2022-core tags.0=with-ssh type=POP2-2C-8G-WIN admin-password-encryption-ssh-key-id={ssh_key_id}
```

## Enabling OpenSSH on an existing Instance

If your Instance was started **without** the `with-ssh` tag, you can enable OpenSSH manually by running the following PowerShell command:

```powershell
Start-Service sshd
```

Once started, load the SSH keys configured in your Project using the following command:

```powershell
PS C:\Users\administrator> Scw-Fetch-SSH-Keys
```

This ensures your SSH keys are loaded and ready for authentication.
Loading