Add BindInterface ssh_config directive and -B command-line argument
authordjm <djm@openbsd.org>
Fri, 23 Feb 2018 02:34:33 +0000 (02:34 +0000)
committerdjm <djm@openbsd.org>
Fri, 23 Feb 2018 02:34:33 +0000 (02:34 +0000)
commit264788ca1a40ff999f42253a7372b4d1857ce1fa
tree0e6316c75a148acf2df52a24eebc5277e1d7894a
parent2256597160d046024fed10073bf6bff750b2da7c
Add BindInterface ssh_config directive and -B command-line argument
to ssh(1) that directs it to bind its outgoing connection to the
address of the specified network interface.

BindInterface prefers to use addresses that aren't loopback or link-
local, but will fall back to those if no other addresses of the
required family are available on that interface.

Based on patch by Mike Manning in bz#2820, ok dtucker@
usr.bin/ssh/readconf.c
usr.bin/ssh/readconf.h
usr.bin/ssh/ssh.1
usr.bin/ssh/ssh.c
usr.bin/ssh/ssh_config.5
usr.bin/ssh/sshconnect.c