From f1ac46af9d6eadf59285f39ee3a2b3251143ea7d Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Fri, 15 Jul 2022 10:05:18 +0200 Subject: [PATCH] Improve install-ssh-client.ps1 and install-ssh-server.ps1 for Linux --- Scripts/install-ssh-client.ps1 | 2 +- Scripts/install-ssh-server.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/install-ssh-client.ps1 b/Scripts/install-ssh-client.ps1 index 9a2c2015..edd3e9d8 100755 --- a/Scripts/install-ssh-client.ps1 +++ b/Scripts/install-ssh-client.ps1 @@ -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* } diff --git a/Scripts/install-ssh-server.ps1 b/Scripts/install-ssh-server.ps1 index 5a240ef6..207d65b6 100755 --- a/Scripts/install-ssh-server.ps1 +++ b/Scripts/install-ssh-server.ps1 @@ -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