FastHandle - Automation Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools

Top     SiteMap


Top     SiteMap

Manager Server

Target Server




Windows OpenSSH for Python Fabric

Prepare OpenSSH

Download Win32-OpenSSH

Download from below sites.

Install Win32 OpenSSH


  1. Extract contents of the latest build to C:\Program Files\OpenSSH
  2. In an elevated Powershell console, run the following
    cd C:\Program Files\OpenSSH
    powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1
  3. Create Host Key
    C:\Program Files\OpenSSH> .\ssh-keygen.exe -A
  4. Start sshd
    net start sshd
  5. Setup sshd and ssh-agent to auto-start
    Set-Service sshd -StartupType Automatic

This is password authentication.

For Key Piars

  1. Edit sshd_config
    C:\Program Files\OpenSSH> copy sshd_config_default sshd_config
    C:\Program Files\OpenSSH> notepad sshd_config
    PubkeyAuthentication yes
  2. Create Key Pairs for earch users
    C:\Program Files\OpenSSH> .\ssh-keygen -t rsa
  3. Create authrized_keys for earch users
    copy authorized_keys
  4. Check and Change Permissions
    C:\Program Files\OpenSSH\FixHostFilePermissions.ps1 -Confirm:$false
  5. Restart SSHD
    > restart-service sshd


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