{"id":383,"date":"2023-07-07T22:28:18","date_gmt":"2023-07-07T15:28:18","guid":{"rendered":"https:\/\/prosindo.com\/blog\/?p=383"},"modified":"2025-01-02T23:21:22","modified_gmt":"2025-01-02T16:21:22","slug":"openssh-server-on-windows-10","status":"publish","type":"post","link":"https:\/\/prosindo.com\/blog\/2023\/07\/07\/openssh-server-on-windows-10\/","title":{"rendered":"OpenSSH Server on Windows 10"},"content":{"rendered":"\n<p>Install OpenSSH via Powershell Admin:<br>\n<code>Get-WindowsCapability -Online | ? Name -like 'OpenSSH*'<\/code><\/p>\n\n\n\n<p><code>Name : OpenSSH.Server~~~~0.0.1.0<\/code><br>\n<code>State : NotPresent<\/code><br>\n<code>Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0<\/code><\/p>\n\n\n\n<p><strong>Install OpenSSH (GUI Method)<\/strong>:<br>Go to Settings \u2192 System \u2192 Optional Features.<br>Check if OpenSSH is installed. If not, select Add a feature, then find and install both OpenSSH Client and Server.<br>Confirm OpenSSH is listed in System and Optional Features.<br>Open the Services app, find OpenSSH SSH Server, set its startup type to Automatic, and start the service.<\/p>\n\n\n\n<p><strong>Install OpenSSH on older Windows 10 prior version 10.1809:<\/strong><br> Download https:\/\/github.com\/PowerShell\/Win32-OpenSSH\/releases\/tag\/v7.9.0.0p1-Beta<br> Unpack to c:\\Program Files\\OpenSSH<br> Run Powershell as an Administrator:<br> <code>Set-Location \"C:\\Program Files\\OpenSSH\"<\/code><br> <code>.\\install-sshd.ps1<\/code><\/p>\n\n\n\n<p>Install SSH key:<\/p>\n\n\n\n<p><code>type .\\.ssh\\id_ecdsa.pub<\/code><br>\n<code>ssh target@win10pc<\/code><br>\n<code>copy con \\ProgramData\\ssh\\administrators_authorized_keys<\/code><br>\n<code>icacls.exe \\ProgramData\\ssh\\administrators_authorized_keys \/inheritance:r \/grant \"Administrators:F\" \/grant \"SYSTEM:F\"<\/code><\/p>\n\n\n\n<p>Sources:<br>\n&#8211; https:\/\/learn.microsoft.com\/en-us\/windows-server\/administration\/openssh\/openssh_keymanagement<br>\n&#8211; https:\/\/docs.plm.automation.siemens.com\/content\/polarion\/19.3\/help\/en_US\/polarion_linux_installation\/configure_ole_object_support_and_attachment_preview_generator\/install_openssh.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install OpenSSH via Powershell Admin: Get-WindowsCapability -Online | ? Name -like &#8216;OpenSSH*&#8217; Name : OpenSSH.Server~~~~0.0.1.0 State : NotPresent Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 Install OpenSSH (GUI Method):Go to Settings \u2192 System \u2192 Optional Features.Check if OpenSSH is installed. If not, select Add a feature, then find and install both OpenSSH Client and Server.Confirm OpenSSH is listed &hellip; <a href=\"https:\/\/prosindo.com\/blog\/2023\/07\/07\/openssh-server-on-windows-10\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;OpenSSH Server on Windows 10&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-383","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts\/383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/comments?post=383"}],"version-history":[{"count":5,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts\/383\/revisions"}],"predecessor-version":[{"id":489,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts\/383\/revisions\/489"}],"wp:attachment":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/media?parent=383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/categories?post=383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/tags?post=383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}