[REGRESSION] ssh link-local addresses fails with "Servname not supported for ai_socktype"

Matt Johnston matt at ucc.asn.au
Tue Jan 28 22:56:24 WST 2014


Hi,

That's a bit unfortunate. Cursed ipv6 syntax, always causing
problems!

If noone has any objections I'll change the separator to ^.
There aren't any common keyboard layouts missing that symbol?

Cheers,
Matt

On Tue, Jan 28, 2014 at 10:13:10AM -0300, Gui Iribarren wrote:
> Hello,
> I bumped into an... interesting... regression introduced by
> 
> http://lists.ucc.gu.uwa.edu.au/pipermail/dropbear/2013q2/001390.html
> 
> which breaks the possibility to connect to ipv6 link-local
> addresses, since '%' is actually the separator for the interface
> identifier.
> 
> symptom is:
> # ssh fe80::f8d1:11ff:fea0:fc%wlan0
> ssh: Exited: Error resolving 'fe80::f8d1:11ff:fea0:fc' port 'wlan0'.
> Servname not supported for ai_socktype
> 
> and jow
> https://lists.openwrt.org/pipermail/openwrt-devel/2014-January/023526.html
> kindly pointed me to this mailing list.
> 
> given it was introduced by a one-liner, maybe another one-liner
> could fix it?
> 
> Signed-off-by: Gui Iribarren <gui at altermundi.net>
> 
> ---
> 
> diff --git a/cli-runopts.c b/cli-runopts.c
> index 8ffd997..acf738e 100644
> --- a/cli-runopts.c
> +++ b/cli-runopts.c
> @@ -620,7 +620,7 @@ static void parse_hostname(const char* orighostarg) {
>                 cli_opts.username = m_strdup(cli_opts.own_user);
>         }
> 
> -       port = strchr(cli_opts.remotehost, '%');
> +       port = strchr(cli_opts.remotehost, '^');
>         if (!port)  {
>                 // legacy separator
>                 port = strchr(cli_opts.remotehost, '/');


More information about the Dropbear mailing list