Skip to content

Commit c5fc538

Browse files
committed
extract correct hostname from ssh settings
1 parent 8aa9b49 commit c5fc538

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nixos-anywhere.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ if [[ -n ${ssh_private_key_file-} ]]; then
224224
fi
225225

226226
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 }')
228228
ssh_port=$(echo "$ssh_settings" | awk '/^port / { print $2 }')
229229

230230
step Uploading install SSH keys

0 commit comments

Comments
 (0)