Difference between revisions of "Activate OpenSSH on Windows"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(18 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
** Install OpenSSH optional capability from Windows interface.
 
** Install OpenSSH optional capability from Windows interface.
  
<pre>
+
 
  Add-WindowsCapability -Online -Name OpenSSH.Server OpenSSH.Server~~~~0.0.1.0 (Using (*) seems not to be working: [[Add-WindowsCapability]] -Online -Name OpenSSH.Server*)
+
  [[Add-WindowsCapability]] -Online -Name OpenSSH.Server
  Start-Service sshd
+
Path          :
  Set-Service -Name sshd -StartupType 'Automatic'
+
Online        : True
</pre>
+
RestartNeeded : False
 +
 
 +
[[User:Welcome|Welcome]] ([[User talk:Welcome|talk]]) 08:03, 6 April 2021 (UTC)0.0.1.0 (Using (*) seems not to be working: <code>[[Add-WindowsCapability]] -Online -Name OpenSSH.Server*</code>)
 +
 
 +
  [[Start-Service]] sshd*
 +
(no ouput)
 +
  [[Set-Service]] -Name sshd -StartupType 'Automatic'
 +
 
 +
=== 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>
  
 
== Activities ==
 
== Activities ==
Line 12: Line 21:
  
  
== Related commands ==
+
== Related terms ==
* <code>[[Get-WindowsCapability]]:  Get-WindowsCapability -Online -name [[OpenSSH]]*</code>
+
* <code>[[Get-WindowsCapability]]:  [[Get-WindowsCapability]] -Online -name [[OpenSSH]]*</code>
 +
* <code>[[logoff]]</code>
 +
* <code>[[Add-WindowsCapability]]</code>
 +
* Error code: <code>0x8024402C</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 10:48, 10 November 2022


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[edit]

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

Activities[edit]


Related terms[edit]

See also[edit]

Advertising: