Comments (6)
This was kind of a dumb mistake: I used chmod -r 755
instead of chmod -R 755
.
Strangely, it still worked on my device so I didn't notice it.
Should be fixed in the just released v0.8
from ssh.
Well, apparently the distributed binaries lack the required execute bit. DIY in case anyone has the same problem:
# chmod u+x /sbin/.magisk/img/ssh/usr/bin/rsync /sbin/.magisk/img/ssh/usr/bin/raw/*
Leaving the issue open incase this is upstream problem instead local
from ssh.
SSHD is not starting/running because execute permission is not set for files in raw directory
Missing in config.sh after copying files and making links:
set_perm_recursive $MODPATH/usr/bin/raw 0 0 0755 0755
config_fixed.txt
from ssh.
Shouldn't the recursive
part be well, recursing directories and setting permissions on $MODPATH and subdirs tough?
from ssh.
Shouldn't the
recursive
part be well, recursing directories and setting permissions on $MODPATH and subdirs tough?
set_perm_recursive $MODPATH 0 0 0755 0644
command is run before files are moved and links created. also, 644 is rw-r--r-- thus no execute permission is set on binary files. there is no need to set execute permission on all files in $MODPATH, just the raw directory and openssh.init script
from ssh.
This was kind of a dumb mistake: I used
chmod -r 755
instead ofchmod -R 755
.
Strangely, it still worked on my device so I didn't notice it.Should be fixed in the just released v0.8
I'm new to magisk, I'm on latest Magisk-v20.3.zip & using SSH for Magisk v0.10 and still have the problem sshd is not starting on boot.
It works fine if I start it
/sbin/.magisk/modules/ssh/opensshd.init start
starting /sbin/.magisk/modules/ssh/usr/bin/sshd... done.
after I did this
/sbin/.magisk/modules/ssh # chmod -R 755 .
I was able to start manually
/ # ./sbin/.magisk/modules/ssh/service.sh
starting //sbin/.magisk/modules/ssh/usr/bin/sshd... done.
But it still is not starting on boot automatically.
from ssh.
Related Issues (20)
- 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
- installation failed,why did the install template not update? HOT 1
- where is the download? HOT 1
- More PATHs? HOT 1
- No ssh command. Paths missing? 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 ssh.