diff options
author | djm@openbsd.org <djm@openbsd.org> | 2018-02-23 02:34:33 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2018-02-23 13:37:49 +1100 |
commit | ac2e3026bbee1367e4cda34765d1106099be3287 (patch) | |
tree | 83d0a8e3b1edcc01b087feb6ea98d67ec8607179 /ssh_config.5 | |
parent | fcdb9d777839a3fa034b3bc3067ba8c1f6886679 (diff) |
upstream: 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@
OpenBSD-Commit-ID: c5064d285c2851f773dd736a2c342aa384fbf713
Diffstat (limited to 'ssh_config.5')
-rw-r--r-- | ssh_config.5 | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ssh_config.5 b/ssh_config.5 index a128e4f0e..bdf41371c 100644 --- a/ssh_config.5 +++ b/ssh_config.5 | |||
@@ -33,8 +33,8 @@ | |||
33 | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 33 | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
34 | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 34 | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
35 | .\" | 35 | .\" |
36 | .\" $OpenBSD: ssh_config.5,v 1.266 2018/02/16 02:40:45 djm Exp $ | 36 | .\" $OpenBSD: ssh_config.5,v 1.267 2018/02/23 02:34:33 djm Exp $ |
37 | .Dd $Mdocdate: February 16 2018 $ | 37 | .Dd $Mdocdate: February 23 2018 $ |
38 | .Dt SSH_CONFIG 5 | 38 | .Dt SSH_CONFIG 5 |
39 | .Os | 39 | .Os |
40 | .Sh NAME | 40 | .Sh NAME |
@@ -254,6 +254,13 @@ The argument must be | |||
254 | or | 254 | or |
255 | .Cm no | 255 | .Cm no |
256 | (the default). | 256 | (the default). |
257 | .It Cm BindInterface | ||
258 | Use the address of the specified interface on the local machine as the | ||
259 | source address of the connection. | ||
260 | Note that this option does not work if | ||
261 | .Cm UsePrivilegedPort | ||
262 | is set to | ||
263 | .Cm yes . | ||
257 | .It Cm BindAddress | 264 | .It Cm BindAddress |
258 | Use the specified address on the local machine as the source address of | 265 | Use the specified address on the local machine as the source address of |
259 | the connection. | 266 | the connection. |