View previous topic :: View next topic |
Author |
Message |
Lemma Guru
Joined: 19 Apr 2002 Posts: 416 Location: Uppsala, Sweden
|
Posted: Mon Feb 03, 2003 5:14 pm Post subject: ssh fast in one direction, not the other... |
|
|
I have a problem with using ssh (or any other connection) to and from my router. I think it has to do with resolving adresses cause - if I scp a file from my router to my other computer, all is well (fast and fine), but if I try to transfer the same file back again to the router, it is slow as hell! My hosts file look like:
laptop;
Code: | 127.0.0.1 localhost
192.168.0.1 gateway.small.net gateway
192.168.0.2 bertil.small.net bertil
130.238.236.220 kemi220.kemi.uu.se kemi220 | and router;
Code: | 127.0.0.1 localhost
130.238.236.1 kemi220.kemi.uu.se kemi220
192.168.0.1 gateway.small.net gateway
192.168.0.2 bertil.small.net bertil |
I think the problem has to do with the fact that the router has two names, gateway.small.net internally and kemi220.kemi.uu.se extarnally. In hostname I have put kemi220.kemi.uu.se only as I can't see how to bind one name to eth0 and another name to eth1. This is frustrating! ! ! _________________ Always make it as simple as possible, but no simpler
/Einstein |
|
Back to top |
|
|
Sven Vermeulen Retired Dev
Joined: 29 Aug 2002 Posts: 1345 Location: Mechelen, Belgium
|
Posted: Mon Feb 03, 2003 6:35 pm Post subject: |
|
|
Where is the slowdown? During the whole process (i.e. speed of transfer) or at the beginning (connection)? If it is the latter, then the problem is probably ip-resolving. If it is the first, then your suggested difficulty isn't the cause.
Are both pc's using the same sshd_config settings? Do you use the same ssh-options on both hosts? |
|
Back to top |
|
|
Lemma Guru
Joined: 19 Apr 2002 Posts: 416 Location: Uppsala, Sweden
|
Posted: Mon Feb 03, 2003 6:58 pm Post subject: |
|
|
Quote: | Are both pc's using the same sshd_config settings? Do you use the same ssh-options on both hosts? | Yes, the ssh-options are the same (gentoo-default). As for the sshd_config, I only have it installed on the router so all the transfers are executed from the laptop, no matter if the direction of the transfer. Quote: | Where is the slowdown? During the whole process (i.e. speed of transfer) or at the beginning (connection)? If it is the latter, then the problem is probably ip-resolving. If it is the first, then your suggested difficulty isn't the cause. | The slowdown starts right away and the transfer is stopped (stalled) at 196kb - if I wait a while it start again only to stall a few 100kb later. This goes on for the whole transfer. I also affect sending email through the router but not reciving.
BTW, sitting at home using it's "official" ip, makes it possible to transfer with the speed I should be able to get directly connected at work (so over two firewalls and at least as many NAT:s the transfer is some 15 times faster ); using that same ip-adress at work gives no speed up... _________________ Always make it as simple as possible, but no simpler
/Einstein |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|