> ## Content Index
> Fetch the complete content index at: https://www.techielass.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# SSH to a Linux server from Windows 11
- URL: https://www.techielass.com/ssh-to-a-linux-server-from-windows-11/
- Published: 2023-06-06T07:01:01.000Z
- Updated: 2023-06-06T07:01:00.000Z
- Description: In this tutorial I walk you through connecting to a Linux server via the SSH protocol using a Windows 11 machine.
- Author: Sarah Lean
- Tags: Windows 11

Connecting to a Linux server is a secure method. In the past I have used tools such as PuTTY to connect, but I’ve recently started to use [OpenSSH](https://www.openssh.com/?ref=techielass.com). 

In this tutorial I will walk you through the process of installing OpenSSH on your Windows 11 machine, and then show you how to SSH to a Linux server using OpenSSH.

## What is OpenSSH?

OpenSSH is a tool that can help you remotely sign-in to computers using the SSH protocol. It encrypts all traffic between the client and the server to avoid eavesdropping, hijacking of the connection and other attacks. 

OpenSSH is developed by developers of the [OpenBSD Project](https://www.openbsd.org/?ref=techielass.com) and is available under a BSD-style licence.

## OpenSSH on Windows 11

With the latest builds of Windows 10 and Windows 11 the OpenSSH client is installed by default. It will be located in the directory *C:/windows/system32/OpenSSH*. 

You can check it is installed by opening**Settings**, and selecting **Apps**

![Windows Settings - Apps](https://storage.ghost.io/c/08/96/08960c71-63a2-449b-91b1-8d4628166dd2/content/images/2023/05/ssh-apps.png)

Windows Settings - Apps

Then select **Optional Features**

![Windows Settings - Apps - Optional Features](https://storage.ghost.io/c/08/96/08960c71-63a2-449b-91b1-8d4628166dd2/content/images/2023/05/ssh-step1.png)

Windows Settings - Apps - Optional Features

Now search for OpenSSH under **installed features**

![Windows Settings - Apps - Optional Features](https://storage.ghost.io/c/08/96/08960c71-63a2-449b-91b1-8d4628166dd2/content/images/2023/05/ssh-search-1.png)

Windows Settings - Apps - Optional Features

## SSH to a Linux server using OpenSSH and a key file

To connect to a Linux server using OpenSSH here are the steps you need to follow. 

Open up your terminal prompt (I am using [Windows Terminal](https://www.techielass.com/tag/windows-terminal/))

Navigate to the directory where you have stored your private key file

Type in the connection string: 

```bash
ssh -i "webserver-keypair.pem" ubuntu@ec2-52-12-77-76.us-west-2.compute.amazonaws.com

```

And hit enter

💡

*Remember to change the key pair file name and connection string to suit your environment and server.* 

You may get a prompt asking you to confirm the authenticity of the server and key file, if you are happy to proceed type in *yes* and hit enter. 

After a few seconds you should see the welcome message confirming you have logged onto the server. 

![Connecting to a Linux server with SSH](https://storage.ghost.io/c/08/96/08960c71-63a2-449b-91b1-8d4628166dd2/content/images/2023/05/ssh-connect.PNG)

Connecting to a Linux server with SSH

## Logoff

Once you are finished you can type *logout* to end the connection.

## Conclusion

Having OpenSSH built into the latest Windows builds makes it really easy to SSH into your Linux servers without having to install another tool.   
  
Have a go and let me know your thoughts!