Comments (5)
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.
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.
@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.
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.
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)
- Configure RTSP HOT 1
- Downgrade Wyze v2? HOT 1
- Discovered MQTT entities with a name that is equal to the device name HOT 12
- General question any camera (mine T10 Sannce)
- Ability to disable IR lighting for "night mode" - feature required for night viewing through windows HOT 4
- What other cameras can we hack?? HOT 1
- smbclient outdated cannot connect with SMB2 protocol HOT 1
- How can I set the gateway? HOT 2
- Dafang camera keeps rebooting after getting an IP address HOT 1
- MQTT Control issues with newer Home Assistant HOT 1
- no audio in .h264 files. Dafang T20 and Xiaofang 1s T20
- reset
- Add tor/onion service capability
- onvif_srvd started' when rendering template `{{ ((value|int)/(700/100))|round }}` but no default was specified
- Ignored file by accident when upgrading HOT 1
- ONVIF not starting HOT 1
- OSD always shows system info, snapshots include red recording icon HOT 1
- Calibrate on start
- I cannot find any reference to $groupname, appears to be null
- Any way to mount SDCard from serial? (working with partially borked device) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xiaomi-dafang-hacks.