Do I still have to do parts of post one? Like adding rcEXT and rc.fix_telnetd? Or just the stuff from the E-Series post? (If so, I don't really get it, as I already seem to have all the stuff like it was mentioned in the E-Series posting, just not the busybox and the dropbearmult part)
- I'm currently just trying to be able to log in via SSH. As I can only run dropbear from web shell I can't let it stay in the foreground to see what's happening (user/pass auth and pubkey auth don't work).
Edit: Getting near:
Code: Select all
root@(none) mnt $ dropbear -E
[3097] Jan 01 00:35:17 Failed reading '/mtd_rwarea/dropbear_dss_host_key', disabling DSS
[3102] Jan 01 00:35:17 Running in background
[3103] Jan 01 00:35:24 Child connection from 192.168.0.67:57695
[3103] Jan 01 00:35:27 user 'root' has invalid shell, rejected
[3103] Jan 01 00:35:30 user 'root' has invalid shell, rejected
[3103] Jan 01 00:35:34 user 'root' has invalid shell, rejected
[3102] Jan 01 00:35:50 premature exit: Terminated by signal
[3103] Jan 01 00:35:50 exit before auth (user 'root', 6 fails): Terminated by signal
This actually worked via web shell.
Edit2: Okay, further in. SSH working now. Used the currently disabled line from rcSGO:
Code: Select all
####harden. mount --bind does not work on F series without SRS_module.ko. Obsolete command now.
# if [ ! -e /mtd_rwarea/passwd ]; then
# echo "root:saJvQKUdIxRW2:0:0:SamyGO secured Root:$NEW_HOME:/bin/sh" > /mtd_rwarea/passwd
# fi
Copied that string to /etc/passwd, set home to /mnt and it magically worked. Though after changing the password it continues to work.
Doesn't somehow work with the current default /mnt/bin/ash shell. I guess because it isn't a default shell and /etc/shells doesn't exist (and doesn't list it naturally).