Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
slow ssh connection to local pc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
d.bahrt
n00b
n00b


Joined: 13 Dec 2007
Posts: 23
Location: Germany

PostPosted: Sat Mar 27, 2010 4:19 pm    Post subject: slow ssh connection to local pc Reply with quote

Hi,
sshd is causing me to explode in some minutes. Connecting to my sever in my LAN is very slow. It takes about 10 seconds to login and 5 seconds to transfer a key stroke. Atm I have access to 3 different computers all running gentoo:
PC 192.168.0.5
server 192.168.0.2
notebook dhcp

The /etc/hosts files are:
PC:
# IPv4 and IPv6 localhost aliases
127.0.0.1 localhost
::1 localhost
127.0.0.1 daniel.Spielen localhost daniel
192.168.0.5 daniel.Spielen daniel
192.168.0.2 server.Spielen server

Server:
# IPv4 and IPv6 localhost aliases
::1 ip6-localhost
127.0.0.1 localhost
192.168.0.2 server.Spielen localhost server
192.168.0.5 daniel.Spielen daniel

All 3 PCs are running a ssh server. Connections between my PC and notebook are fast, from my server to my PC as well, but from my notebook or PC to my server are slow.
On the server I've disabled/enabled UseDNS in sshd_config, tried dhcp instead of a fixed address but nothing changed.
The server's /etc/nsswicht.conf is (and a lot more):
hosts: files dns
networks: files dns

The server's /etc/resolve.conf:
nameserver 192.168.0.1
Neither of the 3 is running avahi. No iptables installed and use-flags for openssh are the same. Wireshark shows no dropped/retransmitted packages.
I really don't know what to do now. I'd appreciate any suggestions.
Back to top
View user's profile Send private message
d.bahrt
n00b
n00b


Joined: 13 Dec 2007
Posts: 23
Location: Germany

PostPosted: Sat Mar 27, 2010 4:39 pm    Post subject: Reply with quote

I've found out a very strange behavior. If I transfer a large file in parallel to my server (11 MB/s on a 100 mbit net), other ssh connetions are getting faster (some key-strokes are still delayed). Initially the transfer is slow and gets faster in the first 10 seconds (until it reaches 11 mb/s
Back to top
View user's profile Send private message
d.bahrt
n00b
n00b


Joined: 13 Dec 2007
Posts: 23
Location: Germany

PostPosted: Sat Mar 27, 2010 5:52 pm    Post subject: Reply with quote

It seems to be working now. After installing a new kernel and enabling cnq the connections are fast.
I hope it stays this way.
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Sun Mar 28, 2010 10:52 am    Post subject: Reply with quote

You don't see anything in dmesg?
Back to top
View user's profile Send private message
d.bahrt
n00b
n00b


Joined: 13 Dec 2007
Posts: 23
Location: Germany

PostPosted: Sun Mar 28, 2010 11:42 am    Post subject: Reply with quote

No, nothing at all (no "error" messages). It's definitely something in the whole network, as today I have the slow connection problem with my notebook. I've updated half of its software and all I get is problems.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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