mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-04-06 22:58:32 +00:00
25 lines
537 B
Markdown
25 lines
537 B
Markdown
---
|
|
title: "Enable OpenSSH Server"
|
|
description: ""
|
|
---
|
|
|
|
```powershell {filename="functions/public/Invoke-WPFSSHServer.ps1",linenos=inline,linenostart=1}
|
|
function Invoke-WPFSSHServer {
|
|
<#
|
|
|
|
.SYNOPSIS
|
|
Invokes the OpenSSH Server install in a runspace
|
|
|
|
#>
|
|
|
|
Invoke-WPFRunspace -ScriptBlock {
|
|
|
|
Invoke-WinUtilSSHServer
|
|
|
|
Write-Host "======================================="
|
|
Write-Host "-- OpenSSH Server installed! ---"
|
|
Write-Host "======================================="
|
|
}
|
|
}
|
|
```
|