grazzolini / mkinitcpio-tinyssh Goto Github PK
View Code? Open in Web Editor NEWArchlinux mkinitcpio hook to enable the tinyssh daemon in early userspace
License: BSD 3-Clause "New" or "Revised" License
Archlinux mkinitcpio hook to enable the tinyssh daemon in early userspace
License: BSD 3-Clause "New" or "Revised" License
Do you think it is possible to use tinyssh in this setup with another user apart from root
? If yes, can you point me to where this config change needs to be made?
Thank you!
I was looking for the same script in debian and could not find it anywhere. I used your logic using initramfs-tools in debian.
Sharing it here for future users in the same situation.
Hi again mate,
I've been setting this up on all of my boxes, and had no issues until I set it up under Arch Linux ARM (Raspberry Pi 2, Model B - armv7h).
I've just debugged it for a while now, and when run from an initrd on Arch ARM it looks for authorized_keys in //.ssh
Not sure if this bug is yours to deal with, a tinyssh bug, or something the Arch ARM guys aren't setting properly in early userspace.
Basically, /root/.ssh is not looked at, I believe, because the root home dir is set to / and /.ssh is the expected directory. /root/.ssh is correctly added to the initrd but is not used.
Hope this makes sense.
Cheers.
Right now the port seems to be hardcoded to default 22.
It would be nice if this was configurable. What do you think?
At https://github.com/grazzolini/mkinitcpio-tinyssh/blob/master/tinyssh_install#L61, the install script will fail if /etc/tinyssh/root_key
is missing. However, later in the script:
cat /etc/tinyssh/root_key > "${BUILDROOT}"/root/.ssh/authorized_keys
Would it make sense to also just check if /root/.ssh/authorized_keys
already exists and then skip that copy step?
The CLI for tinyssh-convert
was (recently?) changed. Currently, trying to use this package causes:
-> Running build hook: [tinyssh]
tinyssh-convert: usage: tinyssh-convert out-tinysshkeydir < in-opensshfile
mkinitcpio-tinyssh/tinyssh_install
Line 32 in bd73e32
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.