Check for SSH Key prior to trying to create one
This commit is contained in:
parent
aad6373538
commit
5c1c67b136
11
setup.ps1
11
setup.ps1
@ -150,7 +150,7 @@ do {
|
|||||||
|
|
||||||
InstallTheApps $Apps
|
InstallTheApps $Apps
|
||||||
Invoke-WebRequest https://cdn.files.community/files/download/Files.Stable.exe -OutFile $HOME/Downloads/Files.Stable.exe
|
Invoke-WebRequest https://cdn.files.community/files/download/Files.Stable.exe -OutFile $HOME/Downloads/Files.Stable.exe
|
||||||
& "$HOME\Downloads\Files.Stable.exe"
|
& "$HOME/Downloads/Files.Stable.exe"
|
||||||
|
|
||||||
}
|
}
|
||||||
"2" {
|
"2" {
|
||||||
@ -196,10 +196,15 @@ do {
|
|||||||
winget uninstall Microsoft.OneDrive Microsoft.OneDriveSync_8wekyb3d8bbwe
|
winget uninstall Microsoft.OneDrive Microsoft.OneDriveSync_8wekyb3d8bbwe
|
||||||
}
|
}
|
||||||
'6'{
|
'6'{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Write-Host "Make sure SSH Client is installed"
|
Write-Host "Make sure SSH Client is installed"
|
||||||
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
|
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
|
||||||
Write-Host "Create SSH Key"
|
Write-Host "Check for SSH Key Create if needed"
|
||||||
ssh-keygen -t ed25519
|
if (-not (Test-Path $env:USERPROFILE\.ssh\id_ed25519)){
|
||||||
|
ssh-keygen -t ed25519
|
||||||
|
}
|
||||||
Write-Host "Start SSH Agent"
|
Write-Host "Start SSH Agent"
|
||||||
Get-Service ssh-agent | Set-Service -StartupType Automatic
|
Get-Service ssh-agent | Set-Service -StartupType Automatic
|
||||||
Start-Service ssh-agent
|
Start-Service ssh-agent
|
||||||
|
Loading…
Reference in New Issue
Block a user