From: cmk128 on
Hi
I am using ssh to connect to other machine via local lan, it was
very fast to prompt up the password input. But now, i need to wait 10
seconds to show up the password prompt. Why? On other machine , it is
ok and i restarted the sshd already.

My bash script doesn't read .bashrc when its startup. Or may be it
read, but doesn't take any effect. I added this line:
PS1='$PWD>'
to .bashrc, but doesn't work. When i type bash -v, i saw that PS1 have
been set to '$PWD>', but just no effect. Why?

thanks
from Peter (cmk128(a)hotmail.com)

From: Allen Kistler on
cmk128(a)hotmail.com wrote:
> Hi
> I am using ssh to connect to other machine via local lan, it was
> very fast to prompt up the password input. But now, i need to wait 10
> seconds to show up the password prompt. Why? On other machine , it is
> ok and i restarted the sshd already.
>
> My bash script doesn't read .bashrc when its startup. Or may be it
> read, but doesn't take any effect. I added this line:
> PS1='$PWD>'
> to .bashrc, but doesn't work. When i type bash -v, i saw that PS1 have
> been set to '$PWD>', but just no effect. Why?

The server is probably trying to get reverse DNS resolution of the client.
From: cmk128 on
On 9 10 , 8 33 , Allen Kistler <ackist...(a)oohay.moc> wrote:
> cmk...(a)hotmail.com wrote:
> > Hi
> > I am using ssh to connect to other machine via local lan, it was
> > very fast to prompt up the password input. But now, i need to wait 10
> > seconds to show up the password prompt. Why? On other machine , it is
> > ok and i restarted the sshd already.
>
> > My bash script doesn't read .bashrc when its startup. Or may be it
> > read, but doesn't take any effect. I added this line:
> > PS1='$PWD>'
> > to .bashrc, but doesn't work. When i type bash -v, i saw that PS1 have
> > been set to '$PWD>', but just no effect. Why?
>
> The server is probably trying to get reverse DNS resolution of the client.

Hi Allen
I fixed the problem. It is caused by a mistake, i got a bug in my
bash script. When it runs, some file will be deleted.
thanks
from Peter (cmk128(a)hotmail.com)