[Librem-5-dev] queries with dev kit environment set up
Dorota Czaplejewicz
dorota.czaplejewicz at puri.sm
Sat May 25 16:18:23 PDT 2019
Hi Dan,
as I said, the root login in the documentation is a mistake; I actually thought it was long gone, together with the IP address.
It also seems you got a dev kit that was flashed with a different version of the image than the tutorial is making use of.
If the /etc/ssh/ssh_host* files are empty, I recommend reflashing, or following what I wrote in the previous email. But really, reflashing is a good idea anyway. Sorry for the trouble!
Cheers,
Dorota
On Sat, 25 May 2019 20:30:07 +0930
Dan Kortschak <dan at kortschak.io> wrote:
> Thanks Darota,
>
> Yes, I am talking about the USB serial as described in the linked
> page[1]. There is says that root can login. This is not the case with
> my board.
>
> > Debian GNU/Linux 10 pureos ttyGS0
> >
> > pureos login: root
> >
> > Login incorrect
> > pureos login: purism
> > Password:
> > Last login: Sat May 25 07:51:32 UTC 2019 on ttyGS0
> > Linux pureos 4.18.11-gee84b30c #1 SMP PREEMPT Mon Mar 18 11:29:53 PDT
> > 2019 aarch64
> >
> > The programs included with the Debian GNU/Linux system are free
> > software;
> > the exact distribution terms for each program are described in the
> > individual files in /usr/share/doc/*/copyright.
> >
> > Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
> > permitted by applicable law.
> > purism at pureos:~$
>
>
> I have not yet got to the reflashing step. I will likely get to that
> tomorrow. The ssh login checks appear prior to that on the page and I
> am assuming that there is a sequence to the instructions (also note
> that DHCP appears to be set up on my board since the IP specified did
> not work and the IP that it did have fits within my local network's
> DHCP allocation range).
>
> The ssh session does not complain about key mismatch when given -vvv
> (ssh to localhost after logging in via USB serial conn).
>
> > purism at pureos:~$ ssh -vvv localhost
> > OpenSSH_7.9p1 Debian-10, OpenSSL 1.1.1b 26 Feb 2019
> > debug1: Reading configuration data /etc/ssh/ssh_config
> > debug1: /etc/ssh/ssh_config line 19: Applying options for *
> > debug2: resolving "localhost" port 22
> > debug2: ssh_connect_direct
> > debug1: Connecting to localhost [::1] port 22.
> > debug1: Connection established.
> > debug1: identity file /home/purism/.ssh/id_rsa type -1
> > debug1: identity file /home/purism/.ssh/id_rsa-cert type -1
> > debug1: identity file /home/purism/.ssh/id_dsa type -1
> > debug1: identity file /home/purism/.ssh/id_dsa-cert type -1
> > debug1: identity file /home/purism/.ssh/id_ecdsa type -1
> > debug1: identity file /home/purism/.ssh/id_ecdsa-cert type -1
> > debug1: identity file /home/purism/.ssh/id_ed25519 type -1
> > debug1: identity file /home/purism/.ssh/id_ed25519-cert type -1
> > debug1: identity file /home/purism/.ssh/id_xmss type -1
> > debug1: identity file /home/purism/.ssh/id_xmss-cert type -1
> > debug1: Local version string SSH-2.0-OpenSSH_7.9p1 Debian-10
> > debug1: Remote protocol version 2.0, remote software version
> > OpenSSH_7.9p1 Debian-10
> > debug1: match: OpenSSH_7.9p1 Debian-10 pat OpenSSH* compat 0x04000000
> > debug2: fd 3 setting O_NONBLOCK
> > debug1: Authenticating to localhost:22 as 'purism'
> > debug3: send packet: type 20
> > debug1: SSH2_MSG_KEXINIT sent
> > Connection reset by ::1 port 22
>
>
> thanks
> Dan
>
> [1]
> https://developer.puri.sm/Librem5/Development_Environment/Boards/imx8.html#usb-console
> [2]
> https://developer.puri.sm/Librem5/Development_Environment/Boards/imx8.html#ethernet-connection
>
>
> On Sat, 2019-05-25 at 12:28 +0200, Dorota Czaplejewicz wrote:
> > Hi Dan,
> >
> > I'll answer inline.
> >
> > On Sat, 25 May 2019 17:38:04 +0930
> > Dan Kortschak via Librem-5-dev <librem-5-dev at lists.community.puri.sm>
> > wrote:
> >
> > > Apologies if this is not the correct place.
> > >
> > > I received my dev kit very late due to shipping oversights and have
> > > only just started being able to get the device set up.
> > >
> > > So far it is working, though there are discrepancies between what
> > > I'm
> > > seeing and the instructions at [1]. Both the serial connection and
> > > the
> > > ethernet conn communicate however:
> > >
> > > 1. With the serial, the docs say that root can login. This is not
> > > the
> > > case failing at username entry (I imagine this is a policy change).
> >
> > There are two serials; I assume you're talking about the USB one,
> > since that's where we're waiting for the correct policy upstream.
> > Either way, if you're confused, that's an oversight, and thanks for
> > mentioning it!
> > >
> > > 2. More significantly, while I can use the ethernet conn to see
> > > out, I
> > > cannot ssh into the device; the connection is closed by the host.
> > > The
> > > same thing happens ssh localhost from the device. I've looked at
> > > sshd_config and I don't see any difference between it there and on
> > > my
> > > laptop which is working fine. It's been a long time since I've
> > > manually
> > > set up a sshd so I'm a little lost as to what I'm missing.
> > >
> >
> > There's an issue in that if the dev kit reboots early during the
> > first boot after reflashing, ssh keys will not get generated. You can
> > either:
> >
> > - reflash and make sure the dev kit boots fully for the first time,
> > - or remove the keys in /etc/sshd (they should be empty anyway),
> > restart and let it fully boot.
> >
> > > Can someone point me in the right direction to sort this out?
> > >
> >
> > Hope the above helps!
> >
> > Cheers,
> > Dorota
> >
> > > thanks
> > > Dan
> > >
> > > [1]
> > >
> https://developer.puri.sm/Librem5/Development_Environment/Boards/imx8.html
> > >
> > >
> > >
> > > _______________________________________________
> > > Librem-5-dev mailing list
> > > Librem-5-dev at lists.community.puri.sm
> > > https://lists.community.puri.sm/listinfo/librem-5-dev
> >
> >
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.community.puri.sm/pipermail/librem-5-dev/attachments/20190526/2dfa540d/attachment.sig>
More information about the Librem-5-dev
mailing list