0562.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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="SSH,Windows,Linux,Secure Shell,Powershell,Terminal,Command Line,How To,Tutorial,i12bretro">
  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. <meta name="revised" content="06/09/2022 02:38:12 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>SSH From Linux Into Your Microsoft Windows Hosts</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <ol>
  26. <li>Log into the Windows host</li>
  27. <li>Run the following commands in a powershell window
  28. <div class="codeBlock PS"># check the current status of ssh server<br />
  29. Get-WindowsCapability -Online | ? Name -like &#39;OpenSSH*&#39;<br />
  30. # install the ssh server<br />
  31. Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0<br />
  32. # start the sshd service and set for automatic startup<br />
  33. Set-Service -Name sshd -Status Running -StartupType Automatic<br />
  34. # check the sshd service status<br />
  35. Get-Service sshd</div>
  36. </li>
  37. <li>With SSH now running, let&#39;s test connecting to it</li>
  38. <li>From another device (Linux or Windows), ssh into the Windows host</li>
  39. <li>After authenticating you should SSH into a remote PowerShell terminal</li>
  40. </ol>
  41. </div>
  42. </div>
  43. </body>
  44. </html>