FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


Sidebar


Top     SiteMap

Manager Server

Target Server

$FHHOME/bin/xxx.sh | xxxx.exp













.

preparation:target:windows.html



Top#Preparation

Windows OpenSSH for Python Fabric



Prepare OpenSSH

Download Win32-OpenSSH

Download OpenSSH-Win64.zip from below sites.
https://github.com/PowerShell/Win32-OpenSSH/releases


Install Win32 OpenSSH

Ref. https://github.com/PowerShell/Win32-OpenSSH/wiki/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
    cd:\users\user01\.ssh
    copy id_rsa.pub authorized_keys
  4. Check and Change Permissions
    C:\Program Files\OpenSSH\FixHostFilePermissions.ps1 -Confirm:$false
  5. Restart SSHD
    > restart-service sshd


Top#Preparation



Top#Preparation



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