mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-09-11 08:35:24 +03:00
fix: use ssh args for getting connection settings
This commit is contained in:
parent
17efd86530
commit
bb058eb8dc
@ -275,7 +275,7 @@ if [[ -n ${ssh_private_key_file-} ]]; then
|
||||
ssh_copy_id_args+=(-f)
|
||||
fi
|
||||
|
||||
ssh_settings=$(ssh -G "${ssh_connection}")
|
||||
ssh_settings=$(ssh "${ssh_args[@]}" -G "${ssh_connection}")
|
||||
ssh_host=$(echo "$ssh_settings" | awk '/^hostname / { print $2 }')
|
||||
ssh_port=$(echo "$ssh_settings" | awk '/^port / { print $2 }')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user