FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
preparation:target:windows.html [2018/01/30 00:50] kurihara created |
preparation:target:windows.html [2018/01/31 01:07] (current) kurihara |
||
---|---|---|---|
Line 1: | Line 1: | ||
[[: | [[: | ||
- | ====== Windows for Python Fabric====== | + | ====== Windows |
\\ | \\ | ||
{{INLINETOC}} | {{INLINETOC}} | ||
\\ | \\ | ||
- | ===== Preparation | + | ===== Prepare |
==== Download Win32-OpenSSH ==== | ==== Download Win32-OpenSSH ==== | ||
- | Download | + | Download OpenSSH-Win64.zip |
https:// | https:// | ||
Line 16: | Line 16: | ||
-Extract contents of the latest build to '' | -Extract contents of the latest build to '' | ||
- | -In an elevated Powershell console, run the following \\ '' | + | -In an elevated Powershell console, run the following |
- | -Start sshd \\ '' | + | cd C:\Program Files\OpenSSH |
- | -Setup sshd and ssh-agent to auto-start | + | powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1 |
+ | </ | ||
+ | -Create Host Key< | ||
+ | C:\Program Files\OpenSSH> .\ssh-keygen.exe -A | ||
+ | </ | ||
+ | -Start sshd< | ||
+ | net start sshd | ||
+ | </ | ||
+ | -Setup sshd and ssh-agent to auto-start< | ||
+ | Set-Service sshd -StartupType Automatic | ||
+ | </ | ||
+ | |||
+ | This is password authentication. | ||
+ | |||
+ | |||
+ | \\ | ||
+ | ==== For Key Piars ==== | ||
+ | - Edit sshd_config< | ||
+ | C:\Program Files\OpenSSH> | ||
+ | C:\Program Files\OpenSSH> | ||
+ | </ | ||
+ | ... | ||
+ | PubkeyAuthentication yes | ||
+ | ... | ||
+ | </ | ||
+ | -Create Key Pairs for earch users< | ||
+ | C:\Program Files\OpenSSH> | ||
+ | </ | ||
+ | - Create authrized_keys for earch users< | ||
+ | cd: | ||
+ | copy id_rsa.pub authorized_keys | ||
+ | </ | ||
+ | -Check and Change Permissions< | ||
+ | C:\Program Files\OpenSSH\FixHostFilePermissions.ps1 -Confirm: | ||
+ | </ | ||
+ | -Restart SSHD< | ||
+ | > restart-service sshd | ||
+ | </ | ||
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.