Re: ssh -b bind_address not working?

From: Richard E. Silverman (res_at_qoxp.net)
Date: 06/28/05


Date: 28 Jun 2005 10:02:43 -0400


>>>>> "AB" == andreas brand <andreas.brand@gmx.ch> writes:

    AB> Hi I use OpenSSH_4.1p1, OpenSSL 0.9.7g 11 Apr 2005 with Solaris
    AB> 9. The server has 2 interfaces bge0 and bge1. My goal is a ssh
    AB> connection to host B. I have a route to host B through bge0 but
    AB> ssh should go over bge1 ....

    AB> I tried that with "ssh -b ip-bge1 hostb", it doesn't work,
    AB> according to snoop it goes through ip-bge0, bge1 is never used.

The -b option controls which address OpenSSH will use as the local
endpoint for its TCP connection. Routing (i.e. which interface the
packets go by) is still controlled by your routing table; OpenSSH has
nothing to do with that.

    AB> For example with ping i can disable the route with "ping -i bge1
    AB> hostb", that works beautiful. Is it not possible to do the same
    AB> with ssh?

No; that option to (some versions of) ping does something entirely
different.

-- 
  Richard Silverman
  res@qoxp.net


Relevant Pages

  • Re: How to create an ssh chain A->B->C to do http over ssh across the chain?
    ... running the following on host A: ... will be forwarded over an SSH connection to port 8080 on host B. The ... second "ssh" command running on B, meanwhile, will then act as a SOCKS ...
    (Debian-User)
  • Re: Password Guessing
    ... > I have an ssh gateway linux-box which is the victim of daily visits by ... Like this, on any ssh connection the script ssh-throttle will be called, ... supplied with the IP address of the source host, ...
    (comp.security.ssh)
  • Re: rcp and rlogin
    ... I just tried three ssh connections to work to machines my ip should not be ... Connection closed by remote host ... ssh: connect to host port 22: Connection timed out ...
    (RedHat)
  • Question on SSH configuration in a cluster environment.
    ... When a failover happens in a cluster, ... known_hosts file is picking up the public key from the physical host. ... In investigating the ssh configuration issue for the cluster I have ... there are ssh connection issues because the host_keys are ...
    (comp.security.ssh)
  • Question on SSH configuration in a cluster environment.
    ... When a failover happens in a cluster, ... known_hosts file is picking up the public key from the physical host. ... In investigating the ssh configuration issue for the cluster I have ... there are ssh connection issues because the host_keys are ...
    (comp.security.unix)