mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-21 09:28:21 +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()
|
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
||||||
|
|
||||||
if ($IsLinux) {
|
if ($IsLinux) {
|
||||||
apt install openssh-client
|
& sudo apt install openssh-client
|
||||||
} else {
|
} else {
|
||||||
Add-WindowsCapability -Online -Name OpenSSH.Client*
|
Add-WindowsCapability -Online -Name OpenSSH.Client*
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ try {
|
|||||||
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
||||||
|
|
||||||
if ($IsLinux) {
|
if ($IsLinux) {
|
||||||
apt install openssh-server
|
& sudo apt install openssh-server
|
||||||
} else {
|
} else {
|
||||||
# Install the OpenSSH Server
|
# Install the OpenSSH Server
|
||||||
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
|
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
|
||||||
|
Loading…
Reference in New Issue
Block a user