Skip to content

Commit 105d26a

Browse files
Mic92mergify[bot]
authored andcommitted
remove unused pubkey
1 parent c92ddab commit 105d26a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/nixos-anywhere.sh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ fi
329329
ssh_settings=$(ssh "${ssh_args[@]}" -G "${ssh_connection}")
330330
ssh_user=$(echo "$ssh_settings" | awk '/^user / { print $2 }')
331331
ssh_host=$(echo "$ssh_settings" | awk '/^hostname / { print $2 }')
332-
ssh_port=$(echo "$ssh_settings" | awk '/^port / { print $2 }')
333332

334333
step Uploading install SSH keys
335334
until
@@ -548,14 +547,6 @@ if [[ ${is_installer-n} == "y" ]] && [[ ${ssh_user} != "root" ]]; then
548547
ssh_connection="root@${ssh_host}"
549548
fi
550549

551-
if [[ ${build_on_remote-n} == "y" ]]; then
552-
pubkey=$(ssh-keyscan -p "$ssh_port" -t ed25519 "$ssh_host" 2>/dev/null || {
553-
echo "ERROR: failed to retrieve host public key for ${ssh_connection}" >&2
554-
exit 1
555-
})
556-
pubkey=$(echo "$pubkey" | sed -e 's/^[^ ]* //' | base64 -w0)
557-
fi
558-
559550
if [[ ${phases[disko]-} == 1 ]]; then
560551
runDisko "$disko_script"
561552
fi

0 commit comments

Comments
 (0)