Comments (9)
..anyone got any ideas?
Maybe... I can login with root, but I have to:
- edit file
/data/ssh/sshd_config
:#PermitRootLogin prohibit-password PermitRootLogin yes
- set
authorized_keys
permissions:chmod 0600 /data/ssh/authorized_keys chmod 0600 /data/ssh/root/.ssh/authorized_keys chmod 0600 /data/ssh/shell/.ssh/authorized_keys
- restart service/device
from ssh.
@lemmy04 -- I had the same issue. Restarting the SSH service seemed to have fixed it for me, I'm not sure why. Also, the "opensshd.init" binary to restart the service was not in the location referenced in the README.md.
Fix via ADB :
adb shell
su
/sbin/.magisk/modules/ssh/opensshd.init restart
from ssh.
@lemmy04 -- I had the same issue. Restarting the SSH service seemed to have fixed it for me, I'm not sure why. Also, the "opensshd.init" binary to restart the service was not in the location referenced in the README.md.
Fix via ADB :
adb shell
su
/sbin/.magisk/modules/ssh/opensshd.init restart
Thanks !
Changing the /data/adb/modules/ssh/service.sh makes it permament
A bit ugly fix, since the path prefix should be a environment variable
#!/system/bin/sh
# Do NOT assume where your module will be located.
# ALWAYS use $MODDIR if you need to know where this script
# and module is placed.
# This will make sure your module will still work
# if Magisk change its mount point in the future
MODDIR=${0%/*}
# This script will be executed in late_start service mode
# [ -f /data/ssh/no-autostart ] || $MODDIR/opensshd.init start (original line)
[ -f /data/ssh/no-autostart ] || /sbin/.magisk/modules/ssh/opensshd.init start
from ssh.
maybe related:
lemmy@akari:~/Work/susebuildservice/home:lemmy04/Telegram> ssh shell@s8
dream2lte:/data/ssh/shell $ su -
sh: su: not found
from ssh.
same problem on a Samsung Tab S2 running Android 7 - can login as shell user, can't login as root, can't use su command.
from ssh.
so how can this be permanently fixed? the restart hasto be done manually after each device restart. Can't really automate backups or anything that way.
from ssh.
any way to have a permanent fix for this?
or maybe some "dirty hack" with tasker that would run the restart command after a reboot, and on each connectivity change?
from ssh.
..anyone got any ideas?
from ssh.
Hello,
Please, connect with adb shell, and check your file if has a the format. I look my public key in authorized_keys files with a space between each charactere. So, it can't working...
Best regard.
Julien
from ssh.
Related Issues (20)
- Permission denied (publickey,keyboard-interactive). HOT 8
- Doesn't load on latest Magisk Canary
- Doesn't autostart on LineageOS 17.1 with Magisk 20.4
- CANNOT LINK EXECUTABLE "rsync": library "libcrypto.so.1.1" not found HOT 5
- Without changing permission of authorized_keys, ssh won't login HOT 3
- Can't login - android 10 HOT 2
- if sshd is set to listen on VPN ip address, it will not launch.
- Some dirs are not deleted when uninstall
- Android 5.1 failed to start ssh
- help wanted - how can I access files on multi-user setups in Android 10?
- Cannot login with users other than root and shell
- Releases/tags HOT 3
- For those who can't get public key authentication working HOT 5
- `/tmp` no such file or directory (on v0.14)
- unzip HOT 3
- Ssh
- Required Directory Permissions & Ownership.
- Unable to negotiate cyber
- Does it support usb ssh, for example, connect with 127.0.0.1 for ip HOT 1
- /usr/local/bin/ssh: No such file or directory
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 ssh.