FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
preparation:target:windows.html [2018/01/30 01:50] kurihara |
preparation:target:windows.html [2018/01/31 01:07] (current) kurihara |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| \\ | \\ | ||
| - | ===== Preparation | + | ===== Prepare |
| ==== Download Win32-OpenSSH ==== | ==== Download Win32-OpenSSH ==== | ||
| Download OpenSSH-Win64.zip from below sites. | Download OpenSSH-Win64.zip from below sites. | ||
| 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 | ||
| - | </ | ||
| - | - Edit sshd_config< | ||
| - | C:\Program Files\OpenSSH> | ||
| - | C:\Program Files\OpenSSH> | ||
| - | </ | ||
| - | ... | ||
| - | PubkeyAuthentication yes | ||
| - | ... | ||
| </ | </ | ||
| -Create Host Key< | -Create Host Key< | ||
| Line 37: | Line 29: | ||
| Set-Service sshd -StartupType Automatic | 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 | ||
| + | ... | ||
| + | </ | ||
| + | | ||
| C:\Program Files\OpenSSH> | C:\Program Files\OpenSSH> | ||
| </ | </ | ||
| - | - Create authrized_keys< | + | - Create authrized_keys |
| cd: | cd: | ||
| copy id_rsa.pub authorized_keys | copy id_rsa.pub authorized_keys | ||
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.