GithubHelp home page GithubHelp logo

SSH Keys about xiaomi-dafang-hacks HOT 5 CLOSED

eliaskotlyar avatar eliaskotlyar commented on June 24, 2024
SSH Keys

from xiaomi-dafang-hacks.

Comments (5)

EliasKotlyar avatar EliasKotlyar commented on June 24, 2024 2

I dont see any possibility to mount ".ssh" to this location. However i can try to compile a new dropbear-version, which will change the the keys location from ".ssh" to "/system/sdcard".

from xiaomi-dafang-hacks.

ljurgs avatar ljurgs commented on June 24, 2024

Thanks, it's not really a big deal, I was just interested in locking down access via ssh so I could tunnel into it since I don't have any other low power devices like this on my home network.

Just out of interest is it possible to unpack the contents of the rootfs with unsquashfs, add a symlink like /.ssh -> /system/sdcard and then repack and reflash or would that invalidate the checksum on the loader somehow?

Thank you so much for sharing all your work on this device with the world. My dafang was effectively a brick before I found this repo.

from xiaomi-dafang-hacks.

EliasKotlyar avatar EliasKotlyar commented on June 24, 2024

@ljurgs : Yes, you can do it this way using the following guide:
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/blob/master/hacks/firmware/create_hacked_firmware.sh

(Basically this creates a new firmware)

from xiaomi-dafang-hacks.

mattzuba avatar mattzuba commented on June 24, 2024

You can try something like mount --bind /.ssh /system/sdcard/ssh and then store your keys in the sdcard's ssh directory (that you'll need to create). No need to repack and reflash any firmware, and bind mounts work even on RO filesystems. If that works for you, just modify run.sh to do the bind mount at boot up.

Edit: Just realized this probably won't work because the /.ssh directory doesn't already exist. Nevermind. :(

from xiaomi-dafang-hacks.

jmtatsch avatar jmtatsch commented on June 24, 2024

Since 3d50d0e you can have your key at ~/.ssh.
Just use ssh-copy-id to set up - it works like a charm.

from xiaomi-dafang-hacks.

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.