Improve install-ssh-client.ps1 and install-ssh-server.ps1 for Linux

This commit is contained in:
Markus Fleschutz 2022-07-15 10:05:18 +02:00
parent 2d0db82461
commit f1ac46af9d
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ try {
$StopWatch = [system.diagnostics.stopwatch]::startNew()
if ($IsLinux) {
apt install openssh-client
& sudo apt install openssh-client
} else {
Add-WindowsCapability -Online -Name OpenSSH.Client*
}

View File

@ -17,7 +17,7 @@ try {
$StopWatch = [system.diagnostics.stopwatch]::startNew()
if ($IsLinux) {
apt install openssh-server
& sudo apt install openssh-server
} else {
# Install the OpenSSH Server
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0