github.com/secure-build/gitlab-runner@v12.5.0+incompatible/scripts/vagrant/provision/enable_sshd.ps1 (about)

     1  # Taken from https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse
     2  # We need to make sure the latest updates are installed as mentioned in https://github.com/MicrosoftDocs/windowsserverdocs/issues/2074
     3  
     4  Write-Output "Enabling OpenSSH"
     5  
     6  Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
     7  
     8  # Set services to start automatically on boot.
     9  Set-Service sshd -StartupType Automatic
    10  
    11  # Start the services for the first time.
    12  Start-Service sshd