# How to use PuTTY for SSH key-based authentication

#### Secure Shell (SSH)

**SSH**, or **Secure Shel**l, is a protocol to securely access and manage a computer or device over an unsecured network. It provides a secure channel in an otherwise insecure environment, ensuring confidentiality and integrity of data.

## Setup Putty for SSH key-based authentication

{% embed url="<https://youtu.be/Q_t24zhYsXM?si=38uJFyj1MbbLrps->" %}

#### PuTTY: Secure SSH Connectivity for Windows

**PuTTY** is a widely used, open-source GUI tool to facilitate secure **SSH** connections. It enables users to establish encrypted tunnels for safe communication between Windows computers and remote servers.

### **Download Putty**

PuTTY can be downloaded [here](https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html). Follow these steps to install it:

### Use PuTTY for a basic connection

**Navigate to Puttygen**&#x20;

click on the file&#x20;

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FhLicmKykdRou4XW5vPim%2Fimage.png?alt=media&#x26;token=8e380537-1eb3-4946-af72-65b9ffd9b0a7" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FDuCotOB3A89WVPI9yonD%2FScreenshot%202024-03-11%20115753.jpg?alt=media&#x26;token=f663b15e-432d-4fbf-aeaa-9ea3b6923a2b" alt=""><figcaption></figcaption></figure>

Choose the All Files option.

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FOluobraRlNCMIunyLcaE%2Fimage.png?alt=media&#x26;token=20b73c9a-6b1c-469b-8354-4a721c9a6b9b" alt=""><figcaption></figcaption></figure>

To **download**, please select your key.

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FpslYVINlXGItyXeLsL0a%2Fimage.png?alt=media&#x26;token=3a3cb5ce-a72f-427f-b5a7-4f693707dad9" alt=""><figcaption></figcaption></figure>

After selecting the **SSH** key, you will see content similar to the following:

Press ok :

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FkNWGQYFgqUgJUWAzI72B%2Fimage.png?alt=media&#x26;token=05c488bf-e6ab-4c45-8ddb-ef1801104014" alt=""><figcaption></figcaption></figure>

Save Private key

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FNFc5ZdjwmgIhMhCRvrvX%2Fimage.png?alt=media&#x26;token=0205b08a-03ee-4b0d-9660-5446843421a3" alt=""><figcaption></figcaption></figure>

Click yes

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FJP3irYCyMw6JvbYxryah%2Fimage.png?alt=media&#x26;token=85c27f49-c409-4b42-8771-462658b9e2c7" alt=""><figcaption></figcaption></figure>

### Naming and Saving Your Folder

Ensure your folder has a descriptive and precise name that reflects its contents. Follow these steps to save and name your folder properly:

1. **Right-click** in your desired directory.
2. Select **New > Folder** from the context menu.
3. Type the **folder name**. Use a name that talks about the folder's purpose or content.
4. Press **Enter** to save the folder with your chosen name.

Remember, a well-named folder facilitates easier access and organization of your files.

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FvDKAfFRcSy8hUrTpYuKq%2Fimage.png?alt=media&#x26;token=0d88c0f3-243a-4b42-a2c8-3f23220256c2" alt=""><figcaption></figcaption></figure>

To start using **PuTTY**:

Enter your IP address and select **Authentication** > **Credentials**.

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FppZbRh0UFnjrg2eMHyRO%2Fimage.png?alt=media&#x26;token=c207a033-563c-4d45-be38-f53d4110a5bf" alt=""><figcaption></figcaption></figure>

Open the browser select your key and click the open:-

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2Fxb7OyzfHthEwhp5DfzTT%2Fimage.png?alt=media&#x26;token=1058b2d8-529f-4488-92e0-b48dea603cd9" alt=""><figcaption></figcaption></figure>

```markdown
Username: [Your Username]
```

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FzGCsNLdcgI1eGVxrBddP%2Fimage.png?alt=media&#x26;token=7b805ef4-3b8e-4ce6-b061-cd128b4ccb89" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2F4cGEsfoUYC9oE9b7hVN7%2Fimage.png?alt=media&#x26;token=91f0f77d-01c5-4f99-a3ad-1976338613bc" alt=""><figcaption></figcaption></figure>
