0562.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>SSH From Linux Into Your Microsoft Windows Hosts</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="How To,Tutorial,SSH,Windows,Linux,Secure Shell,Powershell,i12bretro,Terminal,Command Line">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="SSH From Linux Into Your Microsoft Windows Hosts">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  12. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  13. <script type="text/javascript" src="includes/js/steps.js"></script>
  14. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  15. </head>
  16. <body>
  17. <div id="gridContainer">
  18. <div class="topMargin"></div>
  19. <div id="listName" class="topMargin">
  20. <h1>SSH From Linux Into Your Microsoft Windows Hosts</h1>
  21. </div>
  22. <div></div>
  23. <div id="content">
  24. <ol>
  25. <li>Log into the Windows host</li>
  26. <li>Run the following commands in a powershell window
  27. <div class="codeBlock PS"># check the current status of ssh server<br />
  28. Get-WindowsCapability -Online | ? Name -like &#39;OpenSSH*&#39;<br />
  29. # install the ssh server<br />
  30. Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0<br />
  31. # start the sshd service and set for automatic startup<br />
  32. Set-Service -Name sshd -Status Running -StartupType Automatic<br />
  33. # check the sshd service status<br />
  34. Get-Service sshd</div>
  35. </li>
  36. <li>With SSH now running, let&#39;s test connecting to it</li>
  37. <li>From another device (Linux or Windows), ssh into the Windows host</li>
  38. <li>After authenticating you should SSH into a remote PowerShell terminal</li>
  39. </ol>
  40. </div>
  41. </div>
  42. </body>
  43. </html>