This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |