diff --git a/borg/helpers.py b/borg/helpers.py index 24a8231a4..14caeec3c 100644 --- a/borg/helpers.py +++ b/borg/helpers.py @@ -788,7 +788,7 @@ class Location: ssh_re = re.compile(r""" (?Pssh):// # ssh:// (?:(?P[^@]+)@)? # user@ (optional) - (?P[^:/#]+)(?::(?P\d+))? # host or host:port + (?P[^:/]+)(?::(?P\d+))? # host or host:port """ + path_re + optional_archive_re, re.VERBOSE) # path or path::archive file_re = re.compile(r"""