Check for SSH Key prior to trying to create one
This commit is contained in:
parent
aad6373538
commit
5c1c67b136
@ -150,7 +150,7 @@ do {
|
||||
|
||||
InstallTheApps $Apps
|
||||
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" {
|
||||
@ -196,10 +196,15 @@ do {
|
||||
winget uninstall Microsoft.OneDrive Microsoft.OneDriveSync_8wekyb3d8bbwe
|
||||
}
|
||||
'6'{
|
||||
|
||||
|
||||
|
||||
Write-Host "Make sure SSH Client is installed"
|
||||
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
|
||||
Write-Host "Create SSH Key"
|
||||
Write-Host "Check for SSH Key Create if needed"
|
||||
if (-not (Test-Path $env:USERPROFILE\.ssh\id_ed25519)){
|
||||
ssh-keygen -t ed25519
|
||||
}
|
||||
Write-Host "Start SSH Agent"
|
||||
Get-Service ssh-agent | Set-Service -StartupType Automatic
|
||||
Start-Service ssh-agent
|
||||
|
Loading…
Reference in New Issue
Block a user