Comments (4)
In PlutoSDR firmware version v0.32 there are three new command/scripts,
Which facilitates persistent SSH key and password changes:
The first time you need to format/erase the mtd partition:
# device_format_jffs2
Are you sure to delete/format your mtd2 JFFS2 partition? (yes/no) yes
Erasing 64 Kibyte @ 0 -- 0 % complete flash_erase: Cleanmarker Updated.
Erasing 64 Kibyte @ 10000 -- 7 % complete flash_erase: Cleanmarker Updated.
Erasing 64 Kibyte @ 20000 -- 14 % complete flash_erase: Cleanmarker Updated.
Erasing 64 Kibyte @ 30000 -- 21 % complete flash_erase: Cleanmarker Updated.
Erasing 64 Kibyte @ 40000 -- 28 % complete flash_erase: Cleanmarker Updated.
Erasing 64 Kibyte @ 50000 -- 35 % complete flash_erase: Cleanmarker Updated.
Erasing 64 Kibyte @ 60000 -- 42 % complete flash_erase: Cleanmarker Updated.
Erasing 64 Kibyte @ 70000 -- 50 % complete flash_erase: Cleanmarker Updated.
Erasing 64 Kibyte @ 80000 -- 57 % complete flash_erase: Cleanmarker Updated.
Erasing 64 Kibyte @ 90000 -- 64 % complete flash_erase: Cleanmarker Updated.
Erasing 64 Kibyte @ a0000 -- 71 % complete flash_erase: Cleanmarker Updated.
Erasing 64 Kibyte @ b0000 -- 78 % complete flash_erase: Cleanmarker Updated.
Erasing 64 Kibyte @ c0000 -- 85 % complete flash_erase: Cleanmarker Updated.
Erasing 64 Kibyte @ d0000 -- 92 % complete flash_erase: Cleanmarker Updated.
Erasing 64 Kibyte @ d0000 -- 100 % complete
This copies the current key or generates one, which is now stored on mtd2 (JFFS2).
The next time the system boots it will check the MD5 sum and then uses this key instead.
# device_persistent_keys
Generating 256 bit ecdsa key, this may take a while...
Public key portion is:
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBH+cMtkirbmWjOq+EjW0Lzir5LVuWXFwRTOMOnb0eWo
Fingerprint: sha1!! 10:9c:40:18:f8:e3:10:f1:c8:62:ba:8d:27:48:1b:35:16:8d:a5:f5
#
This calls the Linux passwd command and stores all user/password related files on mtd2 (JFFS2).
The next time the system boots it will check all the MD5 sums and then uses this password instead.
# device_passwd
Changing password for root
New password:
Bad password: too short
Retype password:
passwd: password for root changed by root
#
from plutosdr-fw.
Thanks - for devices that are still to be manufactured - do we want to do this (create a unique ssh key) on every device?
from plutosdr-fw.
We could
from plutosdr-fw.
Now included in -
https://github.com/analogdevicesinc/plutosdr-fw/releases/tag/v0.32
Closed
from plutosdr-fw.
Related Issues (20)
- legal_info_html.sh goes into infinite loop for http code 302 HOT 1
- Vivado 2021.1 "Incorrect selection of kernel headers: expected 4.14.x, got 5.8.x" HOT 2
- ... HOT 5
- JTAG Bootstrap package: `xmd` program discontinued HOT 1
- Only one PlutoSDR accessible vi SSH HOT 5
- Add hook in init.d to run user application code HOT 1
- fatal: reference is not a tree HOT 2
- plutosdr-fw fails to build. HOT 3
- Plutosdr-fw build failed, Cannot execute cross-compiler '/arm-xilinx-linux-gnueabi-gcc' HOT 3
- GLIBC Version with default v0.35 build HOT 1
- Adding timestamping to PlutoSDR firmware HOT 1
- Problem with firmware programming via jtag HOT 1
- v0.36 no more USB connection HOT 3
- [Questions] Updating FPGA procedure HOT 1
- Update Cross Compiling Documention for FW 0.37 HOT 5
- IPv6 off? HOT 3
- xsct scripts/create_fsbl_project.tcl fails on Xilinx SDK 2019.1 HOT 1
- Pluto's config.txt confusing HOT 3
- DHCP Client not running with USB-OTG ethernet HOT 3
- PlutoSDR not working after external clock HOT 19
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 plutosdr-fw.