[Bug 3631] New: ssh fe80 -b invalid argument failure

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Tue Nov 7 04:03:41 AEDT 2023


https://bugzilla.mindrot.org/show_bug.cgi?id=3631

            Bug ID: 3631
           Summary: ssh fe80 -b invalid argument failure
           Product: Portable OpenSSH
           Version: 8.9p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: rainer.burki at asdfg.it

The ssh client does not allow to bind to a local fe80 address if the
address is specified with the option -b <ipv6-addr>. It though works
when specifying it with -B <interface>

The following is from a ubuntu 22.04 trying to connect to another
ubuntu 22.04. 

We will use the local eth0 inet6 address fe80::250:56ff:fe00:243d for
binding:

vmadmin at li224-vmLS1:~$ ip add
...
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel
state UP group default qlen 1000
    link/ether 00:50:56:00:24:3d brd ff:ff:ff:ff:ff:ff
    altname enp3s0
    altname ens160
    inet 192.168.110.61/24 brd 192.168.110.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::250:56ff:fe00:243d/64 scope link 
       valid_lft forever preferred_lft forever
vmadmin at li224-vmLS1:~$ ssh -B eth0 fe80::250:56ff:fe00:241e 
vmadmin at fe80::250:56ff:fe00:241e's password: 
<snip, works>

Same again with -b:

vmadmin at li224-vmLS1:~$ ssh -b fe80::250:56ff:fe00:243d
fe80::250:56ff:fe00:241e 
bind fe80::250:56ff:fe00:243d: Invalid argument
ssh: connect to host fe80::250:56ff:fe00:241e port 22: failure
vmadmin at li224-vmLS1:~$

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list