All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] root passwd asked for reset every ssh login
@ 2016-11-22  6:33 daggs
  2016-11-22  8:02 ` Zoltan Gyarmati
  0 siblings, 1 reply; 3+ messages in thread
From: daggs @ 2016-11-22  6:33 UTC (permalink / raw)
  To: buildroot

Greetings,

I've created a small image with ssh, I'm trying to ssh into the machine with root account (I've enabled root access for ssh) and I keep getting a msg that tells me the passwd has expired and that I need to replace it. after I replace it the connection is terminated and I need to reconnect.
when I do reconnect and enter the new passwd, I'm greeted with the same passwd change msg.
e.g. I cannot login as root to the machine via ssh.

any ideas how to fix this?

Thanks,
Dagg.

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

* [Buildroot] root passwd asked for reset every ssh login
  2016-11-22  6:33 [Buildroot] root passwd asked for reset every ssh login daggs
@ 2016-11-22  8:02 ` Zoltan Gyarmati
  2016-11-23 18:14   ` daggs
  0 siblings, 1 reply; 3+ messages in thread
From: Zoltan Gyarmati @ 2016-11-22  8:02 UTC (permalink / raw)
  To: buildroot

Dear Dagg,


you are using openssh in your image, right? The problem probably comes
from the system time not properly set or not kept by an RTC on your
target platform, which messes up openssh's file timestamp handling. In
my experience in such a scenario (target system without RTC), it's
easier to use dropbear as SSH server implementation, as it handles this
differently. (Assuming of course that you don't need any specific
feature of the OpenSSH implementation)


Regards,

Zoltan Gyarmati
https://zgyarmati.de

On 11/22/2016 07:33 AM, daggs wrote:
> Greetings,
>
> I've created a small image with ssh, I'm trying to ssh into the machine with root account (I've enabled root access for ssh) and I keep getting a msg that tells me the passwd has expired and that I need to replace it. after I replace it the connection is terminated and I need to reconnect.
> when I do reconnect and enter the new passwd, I'm greeted with the same passwd change msg.
> e.g. I cannot login as root to the machine via ssh.
>
> any ideas how to fix this?
>
> Thanks,
> Dagg.
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20161122/4975446b/attachment.asc>

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

* [Buildroot] root passwd asked for reset every ssh login
  2016-11-22  8:02 ` Zoltan Gyarmati
@ 2016-11-23 18:14   ` daggs
  0 siblings, 0 replies; 3+ messages in thread
From: daggs @ 2016-11-23 18:14 UTC (permalink / raw)
  To: buildroot

Greetings Zoltan,

> Dear Dagg,
> 
> 
> you are using openssh in your image, right? The problem probably comes
> from the system time not properly set or not kept by an RTC on your
> target platform, which messes up openssh's file timestamp handling. In
> my experience in such a scenario (target system without RTC), it's
> easier to use dropbear as SSH server implementation, as it handles this
> differently. (Assuming of course that you don't need any specific
> feature of the OpenSSH implementation)
> 
> 
> Regards,
> 
> Zoltan Gyarmati

you are right, my arm board does not have any rtc, thanks for the help, I'll use dropbear.

Dagg.

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

end of thread, other threads:[~2016-11-23 18:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-22  6:33 [Buildroot] root passwd asked for reset every ssh login daggs
2016-11-22  8:02 ` Zoltan Gyarmati
2016-11-23 18:14   ` daggs

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.