public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* SSH Login Delay
@ 2013-01-21 15:21 Jack Mitchell
  2013-01-21 17:05 ` Scott Garman
  0 siblings, 1 reply; 3+ messages in thread
From: Jack Mitchell @ 2013-01-21 15:21 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

I have recently noticed that when SSH'ing to my BeagleBone it has a 3-5 
second delay before the bash prompt shows. I have looked in 
/var/log/messages and noticed:

Jan 18 15:47:12 beaglebone auth.info sshd[12389]: Accepted none for root 
from 192.168.0.51 port 37905 ssh2
Jan 18 15:47:12 beaglebone auth.info sshd[12399]: lastlog_openseek: 
Couldn't stat /var/log/lastlog: No such file or directory
Jan 18 15:47:12 beaglebone auth.info sshd[12399]: lastlog_openseek: 
Couldn't stat /var/log/lastlog: No such file or directory

I was wondering if these stat commands had a timeout on them and 
therefore causing the delay. If so, why do these logs not exist?

I have also noticed that avahi has crept into my image recently and if 
it was possibly something to do with dns resolution or similar?

Has anyone else noticed issues or is a problem with my specific build?

I am running near HEAD oe-core master with a custom distro based on Poky.

Regards,
Jack.

-- 

   Jack Mitchell (jack@embed.me.uk)
   Embedded Systems Engineer
   http://www.embed.me.uk

--




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: SSH Login Delay
  2013-01-21 15:21 SSH Login Delay Jack Mitchell
@ 2013-01-21 17:05 ` Scott Garman
  2013-01-21 17:11   ` Jack Mitchell
  0 siblings, 1 reply; 3+ messages in thread
From: Scott Garman @ 2013-01-21 17:05 UTC (permalink / raw)
  To: openembedded-core

On 01/21/2013 07:21 AM, Jack Mitchell wrote:
> I have recently noticed that when SSH'ing to my BeagleBone it has a 3-5
> second delay before the bash prompt shows. I have looked in
> /var/log/messages and noticed:
>
> Jan 18 15:47:12 beaglebone auth.info sshd[12389]: Accepted none for root
> from 192.168.0.51 port 37905 ssh2
> Jan 18 15:47:12 beaglebone auth.info sshd[12399]: lastlog_openseek:
> Couldn't stat /var/log/lastlog: No such file or directory
> Jan 18 15:47:12 beaglebone auth.info sshd[12399]: lastlog_openseek:
> Couldn't stat /var/log/lastlog: No such file or directory
>
> I was wondering if these stat commands had a timeout on them and
> therefore causing the delay. If so, why do these logs not exist?
>
> I have also noticed that avahi has crept into my image recently and if
> it was possibly something to do with dns resolution or similar?

In my experience this is most likely due to DNS resolution timing out 
trying to resolve a LAN IP address.

Try editing the sshd_config on your BeagleBone's filesystem and set 
UseDNS to no. See if that helps.

Scott

-- 
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: SSH Login Delay
  2013-01-21 17:05 ` Scott Garman
@ 2013-01-21 17:11   ` Jack Mitchell
  0 siblings, 0 replies; 3+ messages in thread
From: Jack Mitchell @ 2013-01-21 17:11 UTC (permalink / raw)
  To: openembedded-core

On 21/01/13 17:05, Scott Garman wrote:
> On 01/21/2013 07:21 AM, Jack Mitchell wrote:
>> I have recently noticed that when SSH'ing to my BeagleBone it has a 3-5
>> second delay before the bash prompt shows. I have looked in
>> /var/log/messages and noticed:
>>
>> Jan 18 15:47:12 beaglebone auth.info sshd[12389]: Accepted none for root
>> from 192.168.0.51 port 37905 ssh2
>> Jan 18 15:47:12 beaglebone auth.info sshd[12399]: lastlog_openseek:
>> Couldn't stat /var/log/lastlog: No such file or directory
>> Jan 18 15:47:12 beaglebone auth.info sshd[12399]: lastlog_openseek:
>> Couldn't stat /var/log/lastlog: No such file or directory
>>
>> I was wondering if these stat commands had a timeout on them and
>> therefore causing the delay. If so, why do these logs not exist?
>>
>> I have also noticed that avahi has crept into my image recently and if
>> it was possibly something to do with dns resolution or similar?
>
> In my experience this is most likely due to DNS resolution timing out 
> trying to resolve a LAN IP address.
>
> Try editing the sshd_config on your BeagleBone's filesystem and set 
> UseDNS to no. See if that helps.
>
> Scott
>

Perfect, fixed it straight away, thanks!

-- 

   Jack Mitchell (jack@embed.me.uk)
   Embedded Systems Engineer
   http://www.embed.me.uk

--




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-01-21 17:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-21 15:21 SSH Login Delay Jack Mitchell
2013-01-21 17:05 ` Scott Garman
2013-01-21 17:11   ` Jack Mitchell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox