Specify which network adapter to use with sshfs?
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!
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.
Re: Specify which network adapter to use with sshfs?
sshfs has the syntax "sshfs firstname.lastname@example.org /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