[Fix] SSH Server

Obihörnchen

Obihörnchen

Dauergast
786
Ob der Fehler schon in Galaxo 1.6.3.3 bestand kann ich nicht sagen. Durch IRC-Chat mit drakaz haben wir heraus gefunden, dass der SSH Server (Option in Galaxoconf) nicht funktioniert. (Galaxo 1.6.3.4)
Drakaz hatte sofort einen fix parat. Durch das zusammenführen von Gaosp/Galaxo und Cyanogenmod haben sich lediglich die Pfade der Keys geändert. Dies wird folgendermaßen gefixt:

Code:
adb pull /system/bin/rc rc
den SSHD Abschnitt einfach mit folgendem austauschen. Dann sollte SSH wieder funktionieren.
Code:
##################
##### SSHD #######
##################

if [ ! -z `grep "sshd=yes" /system/etc/galaxo.conf` ]
then
    kill -9 `pidof dropbear`
# Verification du necessaire pour dropbear et lancement du serveur sshd
# Generation des clés si nécessaire
    if [ ! -d /data/dropbear/ ]
    then
        /system/bin/mkdir /data/dropbear/
    fi
    if [ ! -f /data/dropbear/dropbear_rsa_host_key ]
    then
        /system/xbin/dropbearkey -t rsa -f /data/dropbear/dropbear_rsa_host_key
    fi
    if [ ! -f /data/dropbear/dropbear_dss_host_key ]
    then
        /system/xbin/dropbearkey -t dss -f /data/dropbear/dropbear_dss_host_key
    fi
    

# Execution du serveur SSHD
    echo "GalaxRC : Starting SSHD server..."
    /system/bin/logwrapper /system/xbin/dropbear &

else
    kill -9 `pidof dropbear`
fi
Code:
adb remount
adb push rc /system/bin/rc
adb shell chmod 755 /system/bin/rc
 
Zuletzt bearbeitet:
  • Danke
Reaktionen: Trapp

Ähnliche Themen

S
  • Smartytom
Antworten
3
Aufrufe
3.275
Smartytom
S
pootney
Antworten
4
Aufrufe
2.122
ubuntu2099
U
pootney
Antworten
5
Aufrufe
1.983
colarus
colarus
Zurück
Oben Unten