Looking at the logs pertaining to rsync, we see ssh: connect to host 0.0.10.40 port 22: Connection timed out. That's not the IP address that was specified... but if you convert the first hextet of the IPv6 address, 2600, to IPv4 octets you do indeed get 10.40 ($2600 = 10*256^1 + 40*256^0$).
I think that because rsync uses a colon (:) to delimit the remote from the destination path, it's being tripped up by the colons in the IPv6 address.
I'm using the
1.1.0
release.Here's my invocation:
My configuration files are here: https://github.com/connorbaker/nixos-configs.
The script appears to work up to the point where it tries to copy the extra files over:
At that point it errors out. However, I can ssh into the machine and see that it is still running, albeit without the extra files copied over.
Here are the relevant lines in the script:
https://github.com/nix-community/nixos-anywhere/blob/7973a36f24dd2bc4258152ff6fb6ea63670c5a6c/src/nixos-anywhere.sh#L450-L455
Looking at the logs pertaining to
rsync
, we seessh: connect to host 0.0.10.40 port 22: Connection timed out
. That's not the IP address that was specified... but if you convert the first hextet of the IPv6 address, 2600, to IPv4 octets you do indeed get10.40
($2600 = 10*256^1 + 40*256^0
$).I think that because
rsync
uses a colon (:
) to delimit the remote from the destination path, it's being tripped up by the colons in the IPv6 address.Here's a similar post which describes a solution: https://serverfault.com/questions/420158/how-do-i-use-rsync-with-an-ipv6-address-via-ssh. In short, use brackets (
[]
) to enclose the IPv6 address.