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.1 | |
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.1')
-rw-r--r-- | ssh.1 | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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.1,v 1.389 2017/11/03 02:29:17 djm Exp $ | 36 | .\" $OpenBSD: ssh.1,v 1.390 2018/02/23 02:34:33 djm Exp $ |
37 | .Dd $Mdocdate: November 3 2017 $ | 37 | .Dd $Mdocdate: February 23 2018 $ |
38 | .Dt SSH 1 | 38 | .Dt SSH 1 |
39 | .Os | 39 | .Os |
40 | .Sh NAME | 40 | .Sh NAME |
@@ -43,6 +43,7 @@ | |||
43 | .Sh SYNOPSIS | 43 | .Sh SYNOPSIS |
44 | .Nm ssh | 44 | .Nm ssh |
45 | .Op Fl 46AaCfGgKkMNnqsTtVvXxYy | 45 | .Op Fl 46AaCfGgKkMNnqsTtVvXxYy |
46 | .Op Fl B Ar bind_interface | ||
46 | .Op Fl b Ar bind_address | 47 | .Op Fl b Ar bind_address |
47 | .Op Fl c Ar cipher_spec | 48 | .Op Fl c Ar cipher_spec |
48 | .Op Fl D Oo Ar bind_address : Oc Ns Ar port | 49 | .Op Fl D Oo Ar bind_address : Oc Ns Ar port |
@@ -124,6 +125,12 @@ authenticate using the identities loaded into the agent. | |||
124 | .It Fl a | 125 | .It Fl a |
125 | Disables forwarding of the authentication agent connection. | 126 | Disables forwarding of the authentication agent connection. |
126 | .Pp | 127 | .Pp |
128 | .It Fl B Ar interface | ||
129 | Bind to the address of | ||
130 | .Ar interface | ||
131 | before attempting to connect to the destination host. | ||
132 | This is only useful on systems with more than one address. | ||
133 | .Pp | ||
127 | .It Fl b Ar bind_address | 134 | .It Fl b Ar bind_address |
128 | Use | 135 | Use |
129 | .Ar bind_address | 136 | .Ar bind_address |