File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ if [[ -n ${ssh_private_key_file-} ]]; then
224
224
fi
225
225
226
226
ssh_settings=$( ssh -G " ${ssh_connection} " )
227
- ssh_host=$( echo " $ssh_settings " | awk ' /^host / { print $2 }' )
227
+ ssh_host=$( echo " $ssh_settings " | awk ' /^hostname / { print $2 }' )
228
228
ssh_port=$( echo " $ssh_settings " | awk ' /^port / { print $2 }' )
229
229
230
230
step Uploading install SSH keys
@@ -335,7 +335,7 @@ for path in "${!disk_encryption_keys[@]}"; do
335
335
done
336
336
337
337
pubkey=$( ssh-keyscan -p " $ssh_port " -t ed25519 " $ssh_host " 2> /dev/null || {
338
- echo " ERROR: failed to retrieve host public key for ${ssh_connection} "
338
+ echo " ERROR: failed to retrieve host public key for ${ssh_connection} " >&2
339
339
exit 1
340
340
})
341
341
pubkey=$( echo " $pubkey " | sed -e ' s/^[^ ]* //' | base64 -w0)
You can’t perform that action at this time.
0 commit comments