Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\WINDOWS\system32> Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0; Start-Service sshd; Set-Service sshd -StartupType Automatic
Path :
Online : True
RestartNeeded : False
PS C:\WINDOWS\system32> $key = 'from="192.168.1.*" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAETS7aLyp6mYBlVHvXHKFkU/ckJl61muKBfkOPVx98P claude-photobooth'; New-Item -ItemType Directory -Force "$env:USERPROFILE\.ssh" | Out-Null; Set-Content "$env:USERPROFILE\.ssh\authorized_keys" $key -Encoding ascii; $a = "$env:ProgramData\ssh\administrators_authorized_keys"; Set-Content $a $key -Encoding ascii; icacls $a /inheritance:r /grant "Administrators:F" /grant "SYSTEM:F"
Administrators: Сопоставление между именами пользователей и идентификаторами безопасности не было произведено.
Успешно обработано 0 файлов; не удалось обработать 1 файлов
PS C:\WINDOWS\system32> Get-NetIPAddress -AddressFamily IPv4 | Where-Object IPAddress -notlike '127.*' | Select-Object IPAddress, InterfaceAlias
>>
IPAddress InterfaceAlias
--------- --------------
192.168.1.108 Ethernet
PS C:\WINDOWS\system32> winget install --id Git.Git --source winget --accept-source-agreements --accept-package-agreements
Found Git [Git.Git] Version 2.55.0.3
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/git-for-windows/git/releases/download/v2.55.0.windows.3/Git-2.55.0.3-64-bit.exe
██████████████████████████████ 62.3 MB / 62.3 MB
Successfully verified installer hash
Starting package install...
Successfully installed
PS C:\WINDOWS\system32> winget install --id Python.Python.3.11 --source winget --accept-source-agreements --accept-package-agreements
Found Python 3.11 [Python.Python.3.11] Version 3.11.9
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://www.python.org/ftp/python/3.11.9/python-3.11.9-amd64.exe
██████████████████████████████ 25.0 MB / 25.0 MB
Successfully verified installer hash
Starting package install...
Successfully installed
PS C:\WINDOWS\system32>