Add step 5: generate SSH key (required for upterm publickey auth)
This commit is contained in:
@ -156,6 +156,19 @@ if (-not (Get-Command upterm -ErrorAction SilentlyContinue)) {
|
||||
}
|
||||
Write-Host " OK"
|
||||
|
||||
# 5. SSH-Key generieren (benoetigt fuer upterm-Authentifizierung)
|
||||
Write-Host "[5/5] Pruefe SSH-Key..."
|
||||
$sshDir = "$env:USERPROFILE\.ssh"
|
||||
$keyFile = "$sshDir\id_ed25519"
|
||||
if (-not (Test-Path $keyFile)) {
|
||||
Write-Host " Kein SSH-Key gefunden - generiere ed25519-Key..."
|
||||
if (-not (Test-Path $sshDir)) { New-Item -ItemType Directory -Path $sshDir | Out-Null }
|
||||
ssh-keygen -t ed25519 -f $keyFile -N '""' -q
|
||||
Write-Host " SSH-Key erstellt: $keyFile"
|
||||
} else {
|
||||
Write-Host " SSH-Key bereits vorhanden."
|
||||
}
|
||||
|
||||
Write-Host ""
|
||||
Write-Host "============================================================"
|
||||
Write-Host " Installation abgeschlossen!"
|
||||
|
||||
Reference in New Issue
Block a user