You are not logged in.

#1 2008-08-01 04:53:54

void.pointer
Member
From: Dallas, TX
Registered: 2008-07-30
Posts: 239

[SOLVED] Mysterious lag in SSH connection

Hi,

When I connect to my Archlinux server through PuTTY, I am first prompted to enter my username. I do so and hit ENTER. After this there is about a 10-20 second pause before the request for my password appears. Why is this lagging? I'm basically running off of a fresh install.

EDIT:

Also, a bit unrelated, but I find that after I idle for a few minutes my connection gets terminated. Is there a way to disable this? Or is it a network issue?

Last edited by void.pointer (2008-08-02 17:11:28)

Offline

#2 2008-08-01 07:41:24

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: [SOLVED] Mysterious lag in SSH connection

I think you'll find SSH is trying to resolve you client's IP address to a hostname. Change / add this to /etc/ssh/sshd_config on the server and restart:

UseDNS no

EDIT: on your second issue, try extending the IdleTimeout in your sshd_config file:

IdleTimeout 60m

That will set it to 60 minutes I believe

Last edited by fukawi2 (2008-08-01 07:43:32)

Offline

#3 2008-08-01 15:15:49

void.pointer
Member
From: Dallas, TX
Registered: 2008-07-30
Posts: 239

Re: [SOLVED] Mysterious lag in SSH connection

fukawi2 wrote:

I think you'll find SSH is trying to resolve you client's IP address to a hostname. Change / add this to /etc/ssh/sshd_config on the server and restart:

UseDNS no

EDIT: on your second issue, try extending the IdleTimeout in your sshd_config file:

IdleTimeout 60m

That will set it to 60 minutes I believe

Thanks. Although it wasn't IdleTimeout, it was LoginGraceTime smile

Offline

#4 2008-08-02 03:08:26

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: [SOLVED] Mysterious lag in SSH connection

Oh, well there to go - I presumed you meant after you had logged in smile

Can you update the original post topic to include [SOLVED]? smile

Offline

Board footer

Powered by FluxBB