We want to install OpenSSH on a Windows Server 2019, so we can remote access it with ssh myuser@win2019.
We want also to turn on PowerShell Remoting over SSH, so we can create PSSession objects from PowerShell Core on Linux/MacOs/Windows.
| #!/bin/bash | |
| TMP=`mktemp` | |
| trap ctrlC INT | |
| removeTempFiles() { | |
| rm -f $TMP | |
| } | |
| ctrlC() { |