Difference between revisions of "Activate OpenSSH on Windows"

From wikieduonline
Jump to navigation Jump to search
Line 14: Line 14:
 
  [[Set-Service]] -Name sshd -StartupType 'Automatic'
 
  [[Set-Service]] -Name sshd -StartupType 'Automatic'
  
Activate OpenSSH with one line command:
+
===Activate OpenSSH with one line command===
 
<pre>(Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0) -and (Start-Service sshd) -and (Set-Service -Name sshd -StartupType 'Automatic')</pre>
 
<pre>(Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0) -and (Start-Service sshd) -and (Set-Service -Name sshd -StartupType 'Automatic')</pre>
  

Revision as of 18:09, 9 August 2021


Add-WindowsCapability -Online -Name OpenSSH.Server
Path          :
Online        : True
RestartNeeded : False

Welcome (talk) 08:03, 6 April 2021 (UTC)0.0.1.0 (Using (*) seems not to be working: Add-WindowsCapability -Online -Name OpenSSH.Server*)

Start-Service sshd*
(no ouput)
Set-Service -Name sshd -StartupType 'Automatic'

Activate OpenSSH with one line command

(Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0) -and (Start-Service sshd) -and (Set-Service -Name sshd -StartupType 'Automatic')

Activities


Related terms

See also

Advertising: