Giter VIP home page Giter VIP logo

Comments (9)

pida42 avatar pida42 commented on May 2, 2024 3

..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.

DevSec-Nate avatar DevSec-Nate commented on May 2, 2024 1

@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.

ReMiA00 avatar ReMiA00 commented on May 2, 2024 1

@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.

lemmy04 avatar lemmy04 commented on May 2, 2024

maybe related:

lemmy@akari:~/Work/susebuildservice/home:lemmy04/Telegram> ssh shell@s8
dream2lte:/data/ssh/shell $ su -
sh: su: not found

from ssh.

lemmy04 avatar lemmy04 commented on May 2, 2024

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.

lemmy04 avatar lemmy04 commented on May 2, 2024

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.

lemmy04 avatar lemmy04 commented on May 2, 2024

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.

lemmy04 avatar lemmy04 commented on May 2, 2024

..anyone got any ideas?

from ssh.

jbsky avatar jbsky commented on May 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.