mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-09 18:19:32 +02:00
Improve install-ssh-client.ps1 and install-ssh-server.ps1 for Linux
This commit is contained in:
parent
2d0db82461
commit
f1ac46af9d
@ -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*
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user