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

2006-08-01 Thread Matus UHLAR - fantomas
On 28.07.06 14:14, Hans-J. Ullrich wrote:
 is there any way, to send files over a device greater than eth0 ?

yes there it.

 If eth0 is online, ssh, scp and rsync always wants to send over eth0. In
 the manpages I found no way to change it.

they do not explicitly push data over eth0. They push the data according to
how the host is configured and routing table says.

 (Background: I have wired cable on eth0 and wireless on eth1. You might 
 say: Just change it ! But as I work on different places, then I have 
 continously to change. What a mess)

Do you connect to the same network by both interfaces?
Do you run ifplugd for eth0/eth1? or something similar?

-- 
Matus UHLAR - fantomas, [EMAIL PROTECTED] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
BSE = Mad Cow Desease ... BSA = Mad Software Producents Desease


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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

2006-07-29 Thread Bill Marcum
On Fri, Jul 28, 2006 at 02:14:35PM +0200, Hans-J. Ullrich wrote:
 Hi folks, 
 
 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.
 
 (Background: I have wired cable on eth0 and wireless on eth1. You might 
 say: Just change it ! But as I work on different places, then I have 
 continously to change. What a mess)
 
Set routes to specific sites or subnets via eth1, then set your default 
route.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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

2006-07-28 Thread Roberto C. Sanchez
On Fri, Jul 28, 2006 at 02:14:35PM +0200, Hans-J. Ullrich wrote:
 Hi folks, 
 
 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.
 
 (Background: I have wired cable on eth0 and wireless on eth1. You might 
 say: Just change it ! But as I work on different places, then I have 
 continously to change. What a mess)
 
What you want to do makes no sense.  Your system uses the default route
for anything outside your local network(s).  Check the output of `route
-n` to see which device is set as the default.  You can also use the
route command to change it.

-Roberto

-- 
Roberto C. Sanchez
http://familiasanchez.net/~roberto


signature.asc
Description: Digital signature


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

2006-07-28 Thread LeVA
2006. July 28. 14:14, Hans-J. Ullrich:
 Hi folks,

 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.

 (Background: I have wired cable on eth0 and wireless on eth1. You
 might say: Just change it ! But as I work on different places, then
 I have continously to change. What a mess)

man 1 ssh

-b bind_address
 Use bind_address on the local machine as the source address
 of the connection.  Only useful on systems with more than
 one address.


rsync doc:
--address=ADDRESS   bind to the specified address

Daniel

-- 
LeVA


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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

2006-07-28 Thread Matej Cepl
Hans-J. Ullrich wrote:
 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.

This really doesn't make a sense -- you have to fix your routing tables
rather than trying to fiddle with individual programs.

Matěj

-- 
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
http://www.ceplovi.cz/matej/blog/, Jabber: [EMAIL PROTECTED]
23 Marion St. #3, (617) 876-1259, ICQ 132822213
 
America is the only country that has gone from barbarism to
decadence without civilization in between.
   -- Oscar Wilde



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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

2006-07-28 Thread Larry Irwin



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 



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Policy Routing (was: Re: rsync, ssh, scp: How to send via eth1 or higher ?)

2006-07-28 Thread Rogério Brito
Hi, Hans.

On Jul 28 2006, Hans-J. Ullrich wrote:
 is there any way, to send files over a device greater than eth0 ?

You have already received some response on your question regarding the
bind to an address.

I would like to point out another possibility: you may use policy
routing (if you have it enabled in your kernel) and, say, route all
traffic that is ssh to a given interface.

This is a really nice feature of the kernel and little known. For
manipulating the routes, you will need the package iproute.


Hope this helps, Rogério Brito.

-- 
Rogério Brito : [EMAIL PROTECTED] : http://www.ime.usp.br/~rbrito
Homepage of the algorithms package : http://algorithms.berlios.de
Homepage on freshmeat:  http://freshmeat.net/projects/algorithms/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]