Skip to content

Commit 6e72daa

Browse files
authored
Merge pull request #562 from Meallia/keep-ssh-hostname-after-root-switch
Preserve SSH options when switching to the root user
2 parents b608906 + 8f2b843 commit 6e72daa

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)