How do I use rsync with an IPv6 address via SSH?

Colene Lafever asked:

I’ve been having difficulty with connecting to my IPv6 address via rsync. Because the argument for the destination folder is colon-separated, the IPv6 address disrupts this like so:

root@fdff::ffff:ffff:ffff:/path/to/dest

How do I use rsync with an IPv6 address via SSH?

My answer:


Try placing the IPv6 address in brackets, like this:

root@[2001:db8:1234:5678:feed:face:dead:beef]:/path

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.