mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-09-11 08:35:24 +03:00
extract correct hostname from ssh settings
This commit is contained in:
parent
8aa9b49229
commit
c5fc538880
@ -224,7 +224,7 @@ if [[ -n ${ssh_private_key_file-} ]]; then
|
||||
fi
|
||||
|
||||
ssh_settings=$(ssh -G "${ssh_connection}")
|
||||
ssh_host=$(echo "$ssh_settings" | awk '/^host / { print $2 }')
|
||||
ssh_host=$(echo "$ssh_settings" | awk '/^hostname / { print $2 }')
|
||||
ssh_port=$(echo "$ssh_settings" | awk '/^port / { print $2 }')
|
||||
|
||||
step Uploading install SSH keys
|
||||
|
Loading…
Reference in New Issue
Block a user