Skip to content

Instantly share code, notes, and snippets.

View williamtrelawny's full-sized avatar

William Trelawny williamtrelawny

View GitHub Profile
@williamtrelawny
williamtrelawny / apt-repo-install-secure.sh
Last active May 9, 2023 15:59
Securely install repo with gpg instead of apt-key add
#!/bin/bash
### Usage ###
# bash ./apt-repo-install-secure.sh "${NAME}" "${GPGKEY}" "${REPO}"
# Set your vars here:
NAME="$1" # name of package (e.g. "opensearch")
GPGKEY="$2" # url to repo gpg key
REPO="$3" # url to repo plus args (e.g. "stable main")
@williamtrelawny
williamtrelawny / how-to-ssh-into-windows.md
Last active July 6, 2024 20:22 — forked from teocci/how-to-ssh-into-windows.md
How to SSH into Windows 10 or 11?

How to SSH into Windows 10 or 11?

The latest builds of Windows 10 and Windows 11 include a build-in SSH server and client that are based on OpenSSH. This means now you can remotely connect to Windows 10/11 or Windows Server 2019 using any SSH client, like Linux distros. Let's see how to configure OpenSSH on Windows 10 and Windows 11, and connect to it using Putty or any other SSH client.

OpenSSH is an open-source, cross-platform version of Secure Shell (SSH) that is used by Linux users for a long time. This project is currently ported to Windows and can be used as an SSH server on almost any version of Windows. In the latest versions of Windows Server 2022/2019 and Windows 11, OpenSSH is built-in to the operating system image.