summaryrefslogtreecommitdiff
path: root/ssh.1
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2018-02-23 02:34:33 +0000
committerDamien Miller <djm@mindrot.org>2018-02-23 13:37:49 +1100
commitac2e3026bbee1367e4cda34765d1106099be3287 (patch)
tree83d0a8e3b1edcc01b087feb6ea98d67ec8607179 /ssh.1
parentfcdb9d777839a3fa034b3bc3067ba8c1f6886679 (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.111
1 files changed, 9 insertions, 2 deletions
diff --git a/ssh.1 b/ssh.1
index 9de2a11bd..d754b3a41 100644
--- a/ssh.1
+++ b/ssh.1
@@ -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
125Disables forwarding of the authentication agent connection. 126Disables forwarding of the authentication agent connection.
126.Pp 127.Pp
128.It Fl B Ar interface
129Bind to the address of
130.Ar interface
131before attempting to connect to the destination host.
132This 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
128Use 135Use
129.Ar bind_address 136.Ar bind_address