[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rsync, ssh, scp: How to send via eth1 or higher ?




is there any way, to send files over a device greater than eth0 ?
If eth0 is online, ssh, scp and rsync always wants to send over eth0. In
the manpages I found no way to change it.

All you have to do is to bind ssh to the ip address for eth1 (or whichever eth you want) For incoming connections you control that in sshd_config with the following entry:
ListenAddress [ipaddress]
Otherwise it listens on 0.0.0.0 and is not bound to any particular address and will utilize whichever address the incoming user is choosing. For outgoing connections, it is simply based upon your routing tables and port mappings.
Later,
Larry


Reply to: