How to use Windows 10 SSH (2024)

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” > “Apps” > “Apps & Features” > “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 > “cmd.exe” > “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” > “Apps” > “Apps & Features” > “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) is used to establish a secure network connection between computers or servers. This works thanks to native Windows SSH tools via CMD commands and remote desktop without having to sit at the computer in question in the network. Just like Ubuntu SSH you don’t need any third-party software and is done securely over connections which are encrypted via SCP and SFTP.

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.

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” > “Apps” > “Apps & Features” > “Optional Features” whether the OpenSSH client is already installed. If not, go to “Add Feature”, enter “OpenSSH Client” and click “Install”.

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:

ssh

CMD

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

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:

ssh pi@raspberrypi

CMD

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:

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:

ssh pi@raspberrypi -p 7200

CMD

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” reveals the advantages of each solution.

Here’s how to do it:

Step 1: Follow the “Settings” > “Apps” > “Apps & Features” > “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.

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:

Get-NetFirewallRule -Name *SSH*

CMD

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

ssh <server-name>

CMD

If you encounter issues with your connection, you can follow our tips for fixing SSH errors.

Was this article helpful?

How to use Windows 10 SSH (2024)

FAQs

How to use SSH on Windows 10? ›

Open command prompt as administrator, e.g. with Windows search > “cmd.exe” > “run as administrator”. Enter CMD command ssh . Connect to the desired server with ssh name@server . If necessary, consider the port: default is port 22, change port with -pPortnumber behind the server name.

Does Windows 10 have SSH by default? ›

Microsoft has included an SSH client in Windows 10 and 11 for managing remote Linux systems. However, it is not installed by default. To install the SSH client, go to Settings > Apps > Optional Features and select the OpenSSH client.

How does Windows SSH work? ›

SSH uses the client-server model, connecting a Secure Shell client application, which is the end where the session is displayed, with an SSH server, which is the end where the session runs.

How do I run SSH commands in Windows? ›

You can start an SSH session in your command prompt by executing ssh user@machine and you will be prompted to enter your password. You can create a Windows Terminal profile that does this on startup by adding the commandline setting to a profile in your settings.json file inside the list of profile objects.

Does Windows 10 have OpenSSH? ›

OpenSSH is the open-source version of the Secure Shell (SSH) tools used by administrators of Linux and other non-Windows for cross-platform management of remote systems. Beginning with Windows 10 build 1809 and Windows Server 2019, OpenSSH is available as a feature on demand.

How do I know if SSH port 22 is open on Windows? ›

Type the port you want to check (e.g., 22 for SSH) into the "Port to Check" box. Click Check Port. If the port is open and available, you'll see a confirmation message. If not, you'll see a message that says "Error: I could not see your service on (your IP address) on port (the port number)."

Where is the SSH folder in Windows 10? ›

ssh folder adheres to the convention: C:\Users\your_username\. ssh\ . Native OpenSSH client in Windows 10 : Microsoft integrated a native OpenSSH client starting with Windows 10 build 1803. In this setup, the directory resides in: C:\Users\your_username\.

Is it safe to use SSH on Windows? ›

Using an SSH server on Windows is important for securely managing your computer from a distance. It's a safe way to move files, give commands, and control system resources. But, if it's not properly protected, an SSH server can be targeted by cyber-attacks, which can result in data leaks and unauthorized entry.

How to enable SSH on Windows 10? ›

Open the Services desktop app. (Select Start, type services.msc in the search box, and then select the Service app or press ENTER .) In the details pane, double-click OpenSSH SSH Server. On the General tab, from the Startup type drop-down menu, select Automatic and then select Ok.

Where is SSH file on Windows 10? ›

ssh folder adheres to the convention: C:\Users\your_username\. ssh\ . Native OpenSSH client in Windows 10 : Microsoft integrated a native OpenSSH client starting with Windows 10 build 1803. In this setup, the directory resides in: C:\Users\your_username\.

Top Articles
How to create a strong password
5 Types of Protective Packaging - Crawford Packaging
Bubble Guppies Who's Gonna Play The Big Bad Wolf Dailymotion
Netr Aerial Viewer
Sprinter Tyrone's Unblocked Games
Danatar Gym
Blairsville Online Yard Sale
Free Robux Without Downloading Apps
Knaben Pirate Download
Nier Automata Chapter Select Unlock
Dallas’ 10 Best Dressed Women Turn Out for Crystal Charity Ball Event at Neiman Marcus
111 Cubic Inch To Cc
Soccer Zone Discount Code
Imagetrend Inc, 20855 Kensington Blvd, Lakeville, MN 55044, US - MapQuest
The Pretty Kitty Tanglewood
Adt Residential Sales Representative Salary
Terry Bradshaw | Biography, Stats, & Facts
Zillow Group Stock Price | ZG Stock Quote, News, and History | Markets Insider
Craigslist Alo
Troy Gamefarm Prices
Does Hunter Schafer Have A Dick
Mandy Rose - WWE News, Rumors, & Updates
Elite Dangerous How To Scan Nav Beacon
Dal Tadka Recipe - Punjabi Dhaba Style
Copper Pint Chaska
Marlene2995 Pagina Azul
1964 Impala For Sale Craigslist
Myaci Benefits Albertsons
Town South Swim Club
Solo Player Level 2K23
Progressbook Newark
Primerica Shareholder Account
134 Paige St. Owego Ny
Rund um die SIM-Karte | ALDI TALK
Craigslist Central Il
Lehpiht Shop
Prima Healthcare Columbiana Ohio
W B Crumel Funeral Home Obituaries
Grapes And Hops Festival Jamestown Ny
Watchseries To New Domain
Dr. John Mathews Jr., MD – Fairfax, VA | Internal Medicine on Doximity
Eastern New Mexico News Obituaries
The Best Restaurants in Dublin - The MICHELIN Guide
Zasilacz Dell G3 15 3579
Husker Football
Uc Davis Tech Management Minor
'The Nun II' Ending Explained: Does the Immortal Valak Die This Time?
Willkommen an der Uni Würzburg | WueStart
Sherwin Source Intranet
Ajpw Sugar Glider Worth
Latest Posts
Article information

Author: Jeremiah Abshire

Last Updated:

Views: 5972

Rating: 4.3 / 5 (74 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Jeremiah Abshire

Birthday: 1993-09-14

Address: Apt. 425 92748 Jannie Centers, Port Nikitaville, VT 82110

Phone: +8096210939894

Job: Lead Healthcare Manager

Hobby: Watching movies, Watching movies, Knapping, LARPing, Coffee roasting, Lacemaking, Gaming

Introduction: My name is Jeremiah Abshire, I am a outstanding, kind, clever, hilarious, curious, hilarious, outstanding person who loves writing and wants to share my knowledge and understanding with you.