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 00:50]
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 16: Line 16:
  
   -Extract contents of the latest build to ''C:\Program Files\OpenSSH''   -Extract contents of the latest build to ''C:\Program Files\OpenSSH''
-  -In an elevated Powershell console, run the following \\ ''powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1'' +  -In an elevated Powershell console, run the following <code> 
-  -Start sshd \\ ''net start sshd'' +cd C:\Program Files\OpenSSH 
-  -Setup sshd and ssh-agent to auto-start \\ ''Set-Service sshd -StartupType Automatic''+powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1 
 +</code> 
 +  -Create Host Key<code> 
 +C:\Program Files\OpenSSH> .\ssh-keygen.exe -A 
 +</code> 
 +  -Start sshd<code> 
 +net start sshd 
 +</code> 
 +  -Setup sshd and ssh-agent to auto-start<code> 
 +Set-Service sshd -StartupType Automatic 
 +</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 
 +</code> 
 +  - Create authrized_keys for earch users<code> 
 +cd:\users\user01\.ssh 
 +copy id_rsa.pub authorized_keys 
 +</code> 
 +  -Check and Change Permissions<code> 
 +C:\Program Files\OpenSSH\FixHostFilePermissions.ps1 -Confirm:$false 
 +</code> 
 +  -Restart SSHD<code> 
 +> restart-service sshd 
 +</code>
  
  


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