FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


preparation:target:windows.html



Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
preparation:target:windows.html [2018/01/30 01:49]
kurihara
preparation:target:windows.html [2018/01/31 01:04]
kurihara
Line 7: Line 7:
 ===== Preparation OpenSSH ===== ===== Preparation OpenSSH =====
 ==== Download Win32-OpenSSH ==== ==== Download Win32-OpenSSH ====
-Download Win32-OpenSSH from below sites.+Download OpenSSH-Win64.zip from below sites.
 https://github.com/PowerShell/Win32-OpenSSH/releases https://github.com/PowerShell/Win32-OpenSSH/releases
  
Line 19: Line 19:
 cd C:\Program Files\OpenSSH cd C:\Program Files\OpenSSH
 powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1 powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1
-</code> 
-  - Edit sshd_config<code> 
-C:\Program Files\OpenSSH> copy sshd_config_default sshd_config 
-C:\Program Files\OpenSSH> notepad sshd_config 
-</code><code> 
-... 
-PubkeyAuthentication yes 
-... 
 </code> </code>
   -Create Host Key<code>   -Create Host Key<code>
Line 37: Line 29:
 Set-Service sshd -StartupType Automatic Set-Service sshd -StartupType Automatic
 </code> </code>
-  -Create Key Pairs<code>+ 
 +This is password authentication. 
 + 
 + 
 +\\ 
 +==== For Key Piars ==== 
 +  - Edit sshd_config<code> 
 +C:\Program Files\OpenSSH> copy sshd_config_default sshd_config 
 +C:\Program Files\OpenSSH> notepad sshd_config 
 +</code><code> 
 +... 
 +PubkeyAuthentication yes 
 +... 
 +</code> 
 +  -Create Key Pairs for earch users<code>
 C:\Program Files\OpenSSH> .\ssh-keygen -t rsa C:\Program Files\OpenSSH> .\ssh-keygen -t rsa
 </code> </code>
-  - Create authrized_keys<code>+  - Create authrized_keys for earch users<code>
 cd:\users\user01\.ssh cd:\users\user01\.ssh
 copy id_rsa.pub authorized_keys copy id_rsa.pub authorized_keys


preparation/target/windows.html.txt · Last modified: 2018/01/31 01:07 by kurihara