mirror of
https://github.com/KiTTYsh/dotfiles.git
synced 2025-12-09 20:59:16 -05:00
automatically start and enable sshd
This commit is contained in:
@@ -32,4 +32,6 @@ if (-not (Test-Path 'C:\Program Files\Vim\vim90\vim.exe')) {
|
||||
# sshd
|
||||
if (-not (Get-WindowsCapability -Online | Where-Object Name -EQ "OpenSSH.Server~~~~0.0.1.0" | Where-Object State -EQ "Installed")) {
|
||||
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
|
||||
Start-Service sshd
|
||||
Set-Service -Name sshd -StartupType 'Automatic'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user