Init.ps1 Update
This commit is contained in:
14
init.ps1
14
init.ps1
@@ -17,3 +17,17 @@ echo "Copy SSH Key"
|
|||||||
Get-Content "$Env:USERPROFILE\.ssh\keys\infra.pub"
|
Get-Content "$Env:USERPROFILE\.ssh\keys\infra.pub"
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
|
echo "Install OpenSSH Server"
|
||||||
|
Add-WindowsCapability -Online -Name OpenSSH.Server
|
||||||
|
echo ""
|
||||||
|
echo ""
|
||||||
|
echo "Enable OpenSSH Server"
|
||||||
|
Set-Service -Name sshd -StartupType 'Automatic'
|
||||||
|
echo ""
|
||||||
|
echo ""
|
||||||
|
echo "Start OpenSSH Server"
|
||||||
|
Start-Service -Name sshd
|
||||||
|
echo ""
|
||||||
|
echo ""
|
||||||
|
echo "Install Debian"
|
||||||
|
wsl --install Debian
|
||||||
|
|||||||
Reference in New Issue
Block a user