[Bug 3816] regression: valid_hostname() refuses hostname with comma
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Thu Apr 24 03:12:16 AEST 2025
https://bugzilla.mindrot.org/show_bug.cgi?id=3816
Matthieu Baerts <matttbe at kernel.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WONTFIX
Status|NEW |RESOLVED
CC| |matttbe at kernel.org
--- Comment #2 from Matthieu Baerts <matttbe at kernel.org> ---
Hello,
> Comma characters are not valid in hostnames. Why is systemd using them?
The comma was used as a separator in systemd (and virtme-ng) to be able
to easily connect to a VM by only giving the VSOCK CID number, e.g.
scp vsock,42:/FILE .
This works thanks to this config:
Host unix/* unix,% vsock/* vsock,* machine/* machine,*
ProxyCommand /usr/lib/systemd/systemd-ssh-proxy %h %p
(...)
With 'scp' and 'rsync', the slash separator cannot be used, and that's
why the comma was added, see:
https://github.com/systemd/systemd/pull/37035/
Note that systemd (and soon virtme-ng) has recently switched to '%' for
the separator, see:
https://github.com/systemd/systemd/pull/37191
Then I guess this ticket can be marked as "wontfix".
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
More information about the openssh-bugs
mailing list