Skip to content

Commit 8f2b843

Browse files
committed
Preserve SSH options when switching to the root user
1 parent 4b3c5fa commit 8f2b843

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
@@ -839,7 +839,7 @@ main() {
839839
840840
sshSettings=$(ssh "${sshArgs[@]}" -G "${sshConnection}")
841841
sshUser=$(echo "$sshSettings" | awk '/^user / { print $2 }')
842-
sshHost=$(echo "$sshSettings" | awk '/^hostname / { print $2 }')
842+
sshHost=$(echo "$sshSettings" | awk '/^host / { print $2 }')
843843
844844
uploadSshKey
845845

0 commit comments

Comments
 (0)