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:

ssh name@mywebsite.mydomainname.com

CMD

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.

How to enable and use Windows 10's new built in SSH commands? ›

Open Settings, select System, then select Optional Features. Scan the list to see if the OpenSSH is already installed. If not, at the top of the page, select View Features, then: Search for OpenSSH Client, select Next, then select Install.

How do I use SSH properly? ›

In the PuTTY configuration window, do the following:
  1. Go to Connection -> SSH -> Tunnels.
  2. Type in the source port number in the Source port field.
  3. Type the VNC server address and port in the Destination field.
  4. Start the SSH session as you normally would.
  5. Connect to your server with a VNC client of your choice.
Nov 23, 2023

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 to config SSH in Windows? ›

To configure SSH on Windows:
  1. Install or enable SSH server on your Windows machine. ...
  2. To enable the built-in SSH server for older Windows versions, see Install Win32 OpenSSH.
  3. Configure and start your SSH server.
  4. If you have firewall, open the SSH port in your firewall.

How do I know if SSH is running on Windows 10? ›

Access Windows SSH Client and SSH Server

You can also check that it is present in Windows Settings > System > Optional features, then search for "OpenSSH" in your added features.

How to generate SSH in Windows? ›

Create an SSH key pair on Microsoft Windows
  1. Download PuTTy Key Generator PuTTygen.exe file and run it.
  2. In the Key menu, select SSH-2 RSA Key.
  3. In Parameters, select the RSA option.
  4. In Number of bits in generated key field, enter at least 2048, ideally 4096.
  5. In Actions, select Generate.
  6. A progress bar appears.
May 24, 2024

How to enable SSH using PowerShell? ›

Step-by-step instructions on how to use PowerShell SSH
  1. Step 1: Install OpenSSH. Click on the start menu or enter “PowerShell” in the search bar. ...
  2. Step 2: Start OpenSSH service. ...
  3. Step 3: Start SSH server service automatically. ...
  4. Step 4: Customize firewall. ...
  5. Step 5: Establish an SSH connection. ...
  6. Step 6: Work in the SSH session.
Jul 16, 2024

What is the most basic use of SSH? ›

The Secure Shell (SSH) protocol is a method for securely sending commands to a computer over an unsecured network. SSH uses cryptography to authenticate and encrypt connections between devices.

How does SSH work for dummies? ›

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. SSH implementations often include support for application protocols used for terminal emulation or file transfers.

What are the four steps needed to configure SSH? ›

There are four steps required to enable SSH support on a Cisco IOS router:
  • Configure the hostname command.
  • Configure the DNS domain.
  • Generate the SSH key.
  • Enable SSH transport support for the vty.
Aug 9, 2023

How to start SSH on Windows 10? ›

Starting the Server

To start it, type services into the search to open the services window. Find the Open SSH Server service and right click on it and open the properties window. Then you can press the start button to set it now and set the startup type to automatic, so it will start when Windows boots up.

How to connect using SSH in Windows? ›

Windows operating systems
  1. Start PuTTY.
  2. In the Host Name (or IP address) text box, type the hostname or IP address of the server where your account is located.
  3. In the Port text box, type 7822. ...
  4. Confirm that the Connection type radio button is set to SSH.
  5. Click Open.

How to connect to a server using SSH? ›

Connecting to your Dedicated Server via Terminal
  1. Open the terminal on your computer.
  2. Type ssh, followed by a space. ...
  3. If you see a message stating “Are you sure you want to continue connecting” type yes, then click the Enter key.
  4. You will then be prompted to enter your password.
Feb 21, 2024

How to use SSH in terminal? ›

Connecting to your Dedicated Server via Terminal
  1. Open the terminal on your computer.
  2. Type ssh, followed by a space. ...
  3. If you see a message stating “Are you sure you want to continue connecting” type yes, then click the Enter key.
  4. You will then be prompted to enter your password.
Feb 21, 2024

How to open port 22 in Windows 10? ›

Windows SSH Setup
  1. Open Settings > Update and Security > For Developers .
  2. Click on the radio button for Developer mode ; this will open up your system's port 22 and allow the SSH broker to start listening for incoming connections.

How to set SSH port in Windows? ›

How to Change the SSH Server Port Number on Windows in 2022
  1. Click the Start button at the bottom left corner of your screen.
  2. Click RUN.
  3. Type REGEDIT.
  4. Click OK.
  5. Select Registry Key: ...
  6. Select the menu item Edit and then click on Modify.
  7. Enter the new value for the usGSWSSHDPort and click OK.

How to connect to VM using SSH in Windows? ›

Connecting via SSH
  1. Locate the address of the SSH service. Port opening type. ...
  2. Use the address in a terminal emulation client (such as Putty) or use the following command line to access the VM directly from your desktop SSH client:
  3. ssh -p <port> user@<ip-address-or-hostname>

Top Articles
Cash-Out Refinancing: What It Is, How It Works | Bankrate
Want to Be a Certified Azure Solutions Architect Expert? Read This.
UPS Paketshop: Filialen & Standorte
Plaza Nails Clifton
Tj Nails Victoria Tx
Craigslist Motorcycles Jacksonville Florida
Crocodile Tears - Quest
Ventura Craigs List
Emmalangevin Fanhouse Leak
You can put a price tag on the value of a personal finance education: $100,000
Best Pawn Shops Near Me
Urban Dictionary Fov
2016 Hyundai Sonata Price, Value, Depreciation & Reviews | Kelley Blue Book
Industry Talk: Im Gespräch mit den Machern von Magicseaweed
Red Tomatoes Farmers Market Menu
Viha Email Login
Mineral Wells Independent School District
Colorado mayor, police respond to Trump's claims that Venezuelan gang is 'taking over'
Lake Nockamixon Fishing Report
Urban Dictionary: hungolomghononoloughongous
Nick Pulos Height, Age, Net Worth, Girlfriend, Stunt Actor
Craigslist Pinellas County Rentals
Vigoro Mulch Safe For Dogs
Quest: Broken Home | Sal's Realm of RuneScape
Discord Nuker Bot Invite
27 Modern Dining Room Ideas You'll Want to Try ASAP
Mikayla Campinos: Unveiling The Truth Behind The Leaked Content
No Limit Telegram Channel
Netspend Ssi Deposit Dates For 2022 November
Leben in Japan &#8211; das muss man wissen - Lernen Sie Sprachen online bei italki
TMO GRC Fortworth TX | T-Mobile Community
Striffler-Hamby Mortuary - Phenix City Obituaries
Hannah Jewell
WOODSTOCK CELEBRATES 50 YEARS WITH COMPREHENSIVE 38-CD DELUXE BOXED SET | Rhino
Basil Martusevich
Angela Muto Ronnie's Mom
Workboy Kennel
Games R Us Dallas
Caderno 2 Aulas Medicina - Matemática
World History Kazwire
2023 Nickstory
Updates on removal of DePaul encampment | Press Releases | News | Newsroom
Jetblue 1919
Anthem Bcbs Otc Catalog 2022
St Vrain Schoology
Greatpeople.me Login Schedule
The Bold and the Beautiful
40X100 Barndominium Floor Plans With Shop
Blog Pch
Quest Diagnostics Mt Morris Appointment
60 Second Burger Run Unblocked
Craigslist Cars For Sale By Owner Memphis Tn
Latest Posts
Article information

Author: Nathanael Baumbach

Last Updated:

Views: 6737

Rating: 4.4 / 5 (75 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Nathanael Baumbach

Birthday: 1998-12-02

Address: Apt. 829 751 Glover View, West Orlando, IN 22436

Phone: +901025288581

Job: Internal IT Coordinator

Hobby: Gunsmithing, Motor sports, Flying, Skiing, Hooping, Lego building, Ice skating

Introduction: My name is Nathanael Baumbach, I am a fantastic, nice, victorious, brave, healthy, cute, glorious person who loves writing and wants to share my knowledge and understanding with you.