Results 1 to 3 of 3

Thread: Specify which network adapter to use with sshfs?

  1. #1
    Join Date
    Mar 2011
    Beans
    7

    Question Specify which network adapter to use with sshfs?

    Hi guys,

    I'm running two headless ubuntu servers which I am connecting with sshfs. One of the machines has two network adapters (interface cards). When connecting from the two-adapter machine to the single-adapter one, is it possible to specify which adapter I want to use for the outgoing sshfs connection, and if so how? I know that if I were to connect from the single-adapter machine to the two-adapter machine this would be easy, but for reasons that I won't go into this isn't possible. Thanks for your help!

  2. #2
    Join Date
    Sep 2006
    Beans
    7,809
    Distro
    Lubuntu Development Release

    passing configuration options onward to ssh

    In ssh it should be -o BindAddress to bind to an outgoing address.

    For ssh-based utilities there is usually the possibility to pass options from the utility to ssh. I would look in detail at the man page for sshfs and see if -o does anything like that.

  3. #3
    Join Date
    Mar 2011
    Beans
    7

    Re: Specify which network adapter to use with sshfs?

    sshfs has the syntax "sshfs user@remotehost.com /mount/point -o option=setting". For example, "-o cache_timeout=20" I've tried using "-o bind_address=x.x.x.x" (putting in my real IP address) but without any luck (it give an "unknown option" error). The man page has no obvious way to pass ssh options directly. Thanks for trying though. Do you (or anyone else) have other ideas?

    Edit: scratch that, apparently the correct setting is "-o BindAddress=x.x.x.x" I didn't capitalize the "A" the first time. Thanks for your help!
    Last edited by atm999; October 26th, 2011 at 10:01 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •