Coder Social home page Coder Social logo

Comments (5)

onkoe avatar onkoe commented on July 17, 2024

I fixed this issue for my custom buildroot by mounting the finished image, opening up /etc/shadow, making a new password hash with openssl passwd -1 "milkv", and pasting the output hash between the first two colons after root in the file.

On the other hand, you can also use serial to automatically login and change the password. That's described here! ☺️

from duo-buildroot-sdk.

RedLeaves699 avatar RedLeaves699 commented on July 17, 2024

@onkoe Thank you for your experience, it really helps.

I login milkv successfully now by serial and change the password of "root". Unfortunately, I still can't login by SSH on my Debian machine. But I login in "root" successfully with SSH on Windows Powershell, which makes me confused...

I checked the version of SSH on duo, it's Dropbear v2020.81, while the SSH version on my Debian machine is OpenSSH_9.2p1 Debian-2+deb12u1, OpenSSL 3.0.11 19 Sep 2023. Problems may arise here.

from duo-buildroot-sdk.

onkoe avatar onkoe commented on July 17, 2024

Glad it helped! Let’s see if we can get this fixed. 😄

In your ~.ssh/authorized_keys file, is there an existing entry for the Duo’s IP? If so, try removing it!

Otherwise, what seems to be the issue? Does it not connect at all, or is the password just not working?

from duo-buildroot-sdk.

RedLeaves699 avatar RedLeaves699 commented on July 17, 2024

Glad it helped! Let’s see if we can get this fixed. 😄

In your ~.ssh/authorized_keys file, is there an existing entry for the Duo’s IP? If so, try removing it!

Otherwise, what seems to be the issue? Does it not connect at all, or is the password just not working?

I have removed the authorized_keys. The issue is that the password just not working. Although I input correct password again and again...

from duo-buildroot-sdk.

RedLeaves699 avatar RedLeaves699 commented on July 17, 2024

I think I found some clues about the problem. I used ssh -vvv [email protected] on my Debian machine and my Windows10 machine, part of the difference of the result is shown below:

Debian 12 (Can not login duo)

debug1: Local version string SSH-2.0-OpenSSH_9.2p1 Debian-2+deb12u1
debug1: Remote protocol version 2.0, remote software version OpenSSH_9.2p1 Debian-2+deb12u1

Windows10 (Successfully login duo)

debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.1
debug1: Remote protocol version 2.0, remote software version dropbear_2020.81

It seems that OpenSSH_9.2p1 Debian-2+deb12u1 can't recognise the correct SSH version of milkv-duo.

from duo-buildroot-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.