Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

10 second delay in login

2 views
Skip to first unread message

Phil Nelson

unread,
Feb 21, 2008, 2:29:18 AM2/21/08
to
Ok, it is now time to ask for help!!

I have been experiencing a 10 second delay on using ssh (and rsh)
to a host. m2 is on a private network behind m1 and so I've enabled
rsh. But with both rsh and ssh I get the following (script below) where
several times I get a sub 1 second real time to execute a command like
date on the remote machine, but every 4th or 5th time this command is
run I get a 10 second delay. (See the 4th one below.) It happens the
same way with either ssh or rsh. I've tried with home both on a local
disk and on a NFS mounted home and both act the same. All host
names are in /etc/hosts.

Does anyone have any help ???

--Phil

m1[510]$ while true ; do time ssh -x m2 date ; done
Wed Feb 20 23:23:41 PST 2008

real 0m0.767s
user 0m0.029s
sys 0m0.000s
Wed Feb 20 23:23:41 PST 2008

real 0m0.764s
user 0m0.031s
sys 0m0.000s
Wed Feb 20 23:23:42 PST 2008

real 0m0.758s
user 0m0.014s
sys 0m0.015s
Wed Feb 20 23:23:53 PST 2008

real 0m10.806s
user 0m0.029s
sys 0m0.000s
Wed Feb 20 23:24:04 PST 2008

real 0m10.788s
user 0m0.010s
sys 0m0.019s
Wed Feb 20 23:24:05 PST 2008

real 0m0.766s
user 0m0.000s
sys 0m0.029s
Wed Feb 20 23:24:05 PST 2008

real 0m0.771s
user 0m0.000s
sys 0m0.029s
Wed Feb 20 23:24:06 PST 2008

real 0m0.768s
user 0m0.029s
sys 0m0.000s

--
Phil Nelson (phil at cs.wwu.edu) http://www.cs.wwu.edu/nelson
NetBSD: http://www.NetBSD.org Coda: http://www.coda.cs.cmu.edu

signature.asc

Phil Nelson

unread,
Feb 21, 2008, 1:07:30 PM2/21/08
to
On Wednesday 20 February 2008 11:29:18 pm Phil Nelson wrote:
> I have been experiencing a 10 second delay on using ssh (and rsh)
> to a host. m2 is on a private network behind m1 and so I've enabled
> rsh.

Yes, I'm answering my own question .... after I got an different answer from
a helpful person.

After playing around with nsswitch.conf, this delay goes away when I don't
do nis lookups. So I'm blaming nis for this problem.

--Phil

signature.asc
0 new messages