# How to use Windows 10 SSH

Windows has offered a native SSH client and integrated SSH tools since the Windows 10 version. With these, you can connect to SSH servers without third-party software and even run your own Windows 10 SSH server.

## Quick summary of how to activate Windows 10 SSH

**Activate Client:**

1. Open “Settings” &gt; “Apps” &gt; “Apps &amp; Features” &gt; “Optional Features” and check if the OpenSSH client is installed - if necessary, install it via “Add Feature”.
2. Open command prompt as administrator, e.g. with Windows search &gt; “cmd.exe” &gt; “run as administrator”.
3. Enter CMD command `ssh`.
4. Connect to the desired server with `ssh name@server`.
5. If necessary, consider the port: default is port 22, change port with -pPortnumber behind the server name.
6. If necessary, confirm host key fingerprint with Yes and enter password for the first connection.

**Set up a Windows 10 SSH server:**

1. Open “Settings” &gt; “Apps” &gt; “Apps &amp; Features” &gt; “Optional Features.
2. Select “Add Features” and “OpenSSH Server” and “Install” (admin rights required).
3. Set the startup type for “OpenSSH Authentication Agent” and “OpenSSH Server” to “Automatic” in the Windows “Services” app.
4. Check firewall rules in the Run dialog with `Get-NetFirewallRule -Name *SSH*`.
5. Connect to the SSH server by entering `ssh <server_name>`.

## What is Windows 10 SSH (Secure Shell)?

The [Secure Shell (SSH)](https://www.ionos.com/digitalguide/server/tools/ssh-secure-shell/) is used to establish a secure network connection between computers or servers. This works thanks to native Windows SSH tools via [CMD commands](https://www.ionos.com/digitalguide/server/know-how/windows-cmd-commands/) and [remote desktop](https://www.ionos.com/digitalguide/server/know-how/remote-desktop-success-of-the-application/) without having to sit at the computer in question in the network. Just like [Ubuntu SSH](https://www.ionos.com/digitalguide/server/configuration/ubuntu-ssh/) you don’t need any third-party software and is done securely over connections which are encrypted via [SCP](https://www.ionos.com/digitalguide/server/know-how/scp-secure-copy/) and [SFTP](https://www.ionos.com/digitalguide/server/know-how/sftp-ssh-file-transfer-protocol/).

This offers many advantages for administrators who use an **SSH server-client connection** to do tasks remotely. A connection between Linux and Windows computers, remote control of the computer, and transfer of encrypted data are also possible.

The advantage of the SSH protocol is secure remote access, thanks to the following security features:

- Client-server authentication
- Encrypted data transfer
- Data integrity

Note If you want to use SSH in Windows 11, follow our guide to [Windows 11 SSH](https://www.ionos.com/digitalguide/server/configuration/windows-11-ssh/).

## How do you use the Windows 10 SSH client?

These are the requirements for using SSH remote access in Windows:

- At least Windows 2019 or Windows 10 (version 1809)
- At least PowerShell 5.1
- Administrator rights

Follow these steps to use the Windows 10 OpenSSH client:

**Step 1:** Check via “Settings” &gt; “Apps” &gt; “Apps &amp; Features” &gt; “Optional Features” whether the OpenSSH client is already installed. If not, go to “Add Feature”, enter “OpenSSH Client” and click “Install”.

[![Image: The Optional Features menu with the OpenSSH client](https://www.ionos.com/digitalguide/fileadmin/_processed_/b/3/csm_windows10-openssh-optional-features_6fae06f3ed.webp "The Optional Features menu with the OpenSSH client")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2023/windows10-openssh-optional-features.png) By default, the Windows 10 SSH client should already be present under Optional Features **Step 2:** Once the client is installed, open the command prompt as an administrator by typing “cmd.exe” in the Windows search and then selecting “run as administrator”.

**Step 3:** To open the native SSH tool in Windows 10, enter the following CMD command:

```CMD
ssh
```

You’ll see the SSH User Guide with the command syntax and all the current possible parameters offered by the SSH client.

[![Image: The SSH Usage Guide in the “Run” dialog](https://www.ionos.com/digitalguide/fileadmin/_processed_/4/a/csm_windows10-ssh-usage-guide-run-dialog_96dea7af24.webp "The SSH Usage Guide in the “Run” dialog")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2023/windows10-ssh-usage-guide-run-dialog.png) Use the ssh command to call up all the important SSH parameters in the Run dialog. **Step 4:** If you want to access Raspberry Pi, for example, follow similar steps to macOS and Linux. Connect to the remote server on the required Raspberry device with the following command:

```CMD
ssh pi@raspberrypi
```

In the address, “Pi” stands for the username on the remote server and “raspberrypi” for the remote server. If it should be an IP address in the network or also an external remote server, use this command syntax:

```CMD
ssh name@mywebsite.mydomainname.com
```

**Step 5:** By default, the SSH client uses port 22. If the addressed server uses a different port, for example, port 7200, establish the connection by specifying the port as follows:

```CMD
ssh pi@raspberrypi -p 7200
```

**Step 6:** If connecting to the server for the first time, confirm the host key fingerprint by entering “Yes”. If you have set up a remote server yourself, you do not need to worry about this because the remote server belongs to you. Enter the user password to control the remote computer via SSH and terminal commands.

## How do you set up a Windows 10 SSH server?

If you want to **set up an SSH server** in addition to accessing your computer remotely, follow these steps. You’ll need to install an OpenSSH server. This is usually not pre-installed under Windows but can be quickly added.

Tip Both Linux and Windows are suitable for setting up and operating a private web server. Our comparison “[Linux vs. Windows Servers](https://www.ionos.com/digitalguide/server/know-how/linux-vs-windows-the-big-server-check/)” reveals the advantages of each solution.

Here’s how to do it:

**Step 1:** Follow the “Settings” &gt; “Apps” &gt; “Apps &amp; Features” &gt; “Optional Features” path.

**Step 2:** Go to “Add Features” and click “OpenSSH Server” in the list and click “Install”. This step can be performed only with administrator privileges.

[![Image: The installation of an OpenSSH server under the Windows features](https://www.ionos.com/digitalguide/fileadmin/_processed_/9/f/csm_install-openssh-server-windows-features_c55940fd8c.webp "The installation of an OpenSSH server under the Windows features")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2023/install-openssh-server-windows-features.png) An OpenSSH server can be retrofitted in the optional Windows features. **Step 3:** For the SSH server, Windows installs the OpenSSH Authentication Agent (if not already installed) and OpenSSH Server services. If you want to use SSH regularly, change the startup type of the services to “Automatic”. To do this, enter “Services” in the Windows search and launch the Services app. Right-click on the corresponding services and go to “Properties”. Now change the startup type to “Automatic”.

**Step 4:** Check whether the SSH firewall rules have been activated. To do this, enter the following command in the “Run” dialog and check the firewall rules:

```CMD
Get-NetFirewallRule -Name *SSH*
```

**Step 5:** To connect to the Windows 10 SSH server, enter the following command:

```CMD
ssh <server-name>
```

If you encounter issues with your connection, you can follow our tips for [fixing SSH errors](https://www.ionos.com/digitalguide/server/know-how/fixing-ssh-errors/).


This is a markdown version of: [https://www.ionos.com/digitalguide/server/configuration/windows-10-ssh/](https://www.ionos.com/digitalguide/server/configuration/windows-10-ssh/) for AI/LLM consumption.