Skip to content
This repository was archived by the owner on Apr 19, 2019. It is now read-only.
This repository was archived by the owner on Apr 19, 2019. It is now read-only.

Can't connect via SSH on pre-built images #200

Description

@dangpzanco

Hello,

I have followed the tutorial Adding Authorized Keys for Remote ssh Access, I have my pair of public and private keys and they work just fine by following the "Build-Time Configuration of Authorized Keys" section.

I've had some problems with building an image and I wanted to try the pre-built ones, but I don't have a serial cable. Instead, I tried adding the public key manually by accessing the SD Card.

By the way my target platform is the Galileo Gen 2.

So, step by step, what I did:

  1. Download the prebuilt image ostro-image-swupd-all-intel-quark.dsk.xz

  2. Burn it to the SD Card

    sudo -E bmaptool copy ostro-image-swupd-all-intel-quark.dsk.xz /dev/mmcblk0

  3. Generate the public/private key pair

    ssh-keygen -t rsa -b 4096 -C daniel@daniel-ubuntu

  4. Copy the public key

    sudo -E cp ~/.ssh/id_rsa.pub /media/daniel/<sd_card_id>/home/root/.ssh/authorized_keys

  5. Boot the Galileo Gen 2 and try connecting via SSH (its IP is fixed on the router), but this happens:

daniel@daniel-ubuntu:~$ ssh root@10.0.0.100
The authenticity of host '10.0.0.100 (10.0.0.100)' can't be established.
RSA key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.0.0.100' (RSA) to the list of known hosts.
root@10.0.0.100's password: 
Permission denied, please try again.
root@10.0.0.100's password: 
Permission denied, please try again.
root@10.0.0.100's password: 
Permission denied (publickey,password).

This doesn't make much sense to me... Is there a way to enable the root password on by modifying some files on the SD Card? Why is my public key being denied? Are there any other users with default passwords which I could try?

Thank you very much for your attention,

Daniel

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions