Skip to content

Instantly share code, notes, and snippets.

View innossansmed's full-sized avatar

Med innossansmed

View GitHub Profile
# docflow Win11 VM SSH-Setup
# Run in PowerShell on Win11: iwr https://gist.githubusercontent.com/... | iex
$ErrorActionPreference = "Stop"
$key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHF7KZ+40w5ebRCBIiAGAxDNF2ADnAkXGS/DLl6gJ2VC a.hassan@buismed.de"
$sshDir = "$HOME\.ssh"
$authFile = "$sshDir\authorized_keys"
if (-not (Test-Path $sshDir)) {
New-Item -ItemType Directory -Force -Path $sshDir | Out-Null