|
1 | 1 | --- |
2 | | -title: OpenSSH server is now enabled on Windows 2022 images |
| 2 | +title: OpenSSH server now preinstalled on Windows 2022 images |
3 | 3 | status: added |
4 | 4 | author: |
5 | | - fullname: '' |
| 5 | + fullname: 'Join the #instances channel on Slack.' |
6 | 6 | url: 'https://slack.scaleway.com' |
7 | 7 | date: 2025-02-04 |
8 | 8 | category: compute |
9 | 9 | product: instances |
10 | 10 | --- |
11 | 11 |
|
12 | | -The newest release of the Windows 2022 server and Windows 2022 core images now have the OpenSSH Server and OpenSSH Client packages installed by default. |
| 12 | +The latest release of **Windows Server 2022** and **Windows Server 2022 Core** images now includes the **OpenSSH Server** and **OpenSSH Client** packages by default. |
13 | 13 |
|
14 | | -The OpenSSH Server is installed and disabled by default for security purposes. It can be enabled at instance creation time by adding the tag `with-ssh` to the instance when it is created. |
| 14 | +- The **OpenSSH Server** is installed but **disabled by default** for security reasons. |
| 15 | +- To enable it at instance creation, add the tag `with-ssh` when launching your server. |
15 | 16 |
|
16 | | -This is an example of a CLI command to start a server with OpenSSH Server enabled : |
17 | | -``` |
| 17 | +#### Enabling OpenSSH at Instance creation |
| 18 | + |
| 19 | +Use the following CLI command to create a new Instance with OpenSSH Server enabled: |
| 20 | + |
| 21 | +```sh |
18 | 22 | 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} |
19 | 23 | ``` |
20 | | -If your instance has been started without the tag and you want to enable OpenSSH Server, simply use the following Powershell command : |
21 | 24 |
|
22 | | -``` |
| 25 | +#### Enabling OpenSSH on an existing Instance |
| 26 | + |
| 27 | +If your instance was started **without** the `with-ssh` tag, you can enable OpenSSH manually by running the following PowerShell command: |
| 28 | + |
| 29 | +```powershell |
23 | 30 | Start-Service sshd |
24 | 31 | ``` |
25 | | -You will then need to load the ssh keys configured in your project by using the ScalewayEcosystem command : |
26 | | -``` |
| 32 | + |
| 33 | +Once started, load your SSH keys configured in your project using the following command: |
| 34 | + |
| 35 | +```powershell |
27 | 36 | PS C:\Users\administrator> Scw-Fetch-SSH-Keys |
| 37 | +``` |
| 38 | + |
| 39 | +This ensures your SSH keys are loaded and ready for authentication. |
28 | 40 |
|
0 commit comments