Neuer Pi + neues Jessi = nur Probleme

  • Hi zusammen ,

    Also als erstes muss ich euch alle hier Loben seit ein super Forum.

    Nun zu meinem Problem.

    Hab den neuen Raspberry Pi 3B+ mir gekauft! darauf habe ich die meuste Version von Jessi drauf gemacht! Soweit so gut.

    Bis zu dem Punkt wo es an "sudo su" und passwd geht gebe alles so ein wie beschrieben. mache danach einen neustart.

    Sobald der Rasp da ist will ich mich mit root anmelden jedoch verweigert er mir den "Zutritt" (Access denied) selbst wenn ich mich nochmal normal anmelde und Passwort nochmal ändere, ändert sich da nichts!

    Kann mir da jemand helfen? Danke im Vorraus

  • Moin Hubi

    hast du mal probiert ob du dich einfach mit dem user <pi> anmelden kannst und mit dem befehl <su> auf den root user wechseln kannst?

    Der Login über SSH mit dem usernamen <root> ist normalerweise gesperrt. Das musst du in der Datei /etc/ssh/sshd_config erst aktivieren.

    wenn ich mich richtig erinnere:

    sudo nano /etc/ssh/sshd_config

    und dort die Zeile

    PermitRootLogin prohibit-password

    ändern in

    PermitRootLogin yes

  • habe ich alles gemacht!

    Selbst bei der config - Localisation Option kann ich zwar de_DE.UTF-8 UTF-8 auswählen aber er gibt mir dann immer danach nur NONE, C.UTF-8 und en_GB.UFT-8 zur auswahl!

    Bin gerade ein bisschen mit meinem Latein am Ende! gestern gute 6Stunden alles probiert sogar neues .img draufgemacht. alles Neu gemacht :wacko:

    Und so sieht es dann danach aus:

    login as: root

    root@192.168.2.39's password:

    Access denied

    root@192.168.2.39's password:

    login as: pi

    pi@192.168.2.39's password:

    Linux raspberrypi 4.9.80-v7+ #1098 SMP Fri Mar 9 19:11:42 GMT 2018 armv7l

    The programs included with the Debian GNU/Linux system are free software;

    the exact distribution terms for each program are described in the

    individual files in /usr/share/doc/*/copyright.

    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent

    permitted by applicable law.

    Last login: Fri Mar 23 20:41:38 2018 from 192.168.2.24

    Wi-Fi is disabled because the country is not set.

    Use raspi-config to set the country before use.


    pi@raspberrypi:~ $ sudo nano /etc/ssh/sshd_config

    pi@raspberrypi:~ $ sudo raspi-config

    Generating locales (this might take a while)...

    en_GB.UTF-8... done

    Generation complete.

    Generating locales (this might take a while)...

    en_GB.UTF-8... done

    Generation complete.

    Reading package lists... Done

    E: Method http has died unexpectedly!

    E: Sub-process http received a segmentation fault.

    pi@raspberrypi:~ $ sudo su

    root@raspberrypi:/home/pi# passwd

    Enter new UNIX password:

    Retype new UNIX password:

    passwd: password updated successfully

    root@raspberrypi:/home/pi#

  • habe ich schon probiert

    mit 1234! auch nicht wirklich funktioniert


    root@raspberrypi:/home/pi# reboot

    login as: pi

    pi@192.168.2.39's password:

    Linux raspberrypi 4.9.80-v7+ #1098 SMP Fri Mar 9 19:11:42 GMT 2018 armv7l

    The programs included with the Debian GNU/Linux system are free software;

    the exact distribution terms for each program are described in the

    individual files in /usr/share/doc/*/copyright.

    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent

    permitted by applicable law.

    Last login: Sat Mar 24 11:18:20 2018 from 192.168.2.24

    Wi-Fi is disabled because the country is not set.

    Use raspi-config to set the country before use.

    pi@raspberrypi:~ $ sudo nano /etc/ssh/sshd_config

    GNU nano 2.7.4 File: /etc/ssh/sshd_config Modified

    #RekeyLimit default none

    # Logging

    #SyslogFacility AUTH

    #LogLevel INFO

    # Authentication:

    #LoginGraceTime 2m

    #PermitRootLogin yes

    #StrictModes yes

    #MaxAuthTries 6

    #MaxSessions 10

    #PubkeyAuthentication yes

    # Expect .ssh/authorized_keys2 to be disregarded by default in future.

    #AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2

    #AuthorizedPrincipalsFile none

    #AuthorizedKeysCommand none

    #AuthorizedKeysCommandUser nobody

    # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts

    #HostbasedAuthentication no

    # Change to yes if you don't trust ~/.ssh/known_hosts for

    # HostbasedAuthentication

    # $OpenBSD: sshd_config,v 1.100 2016/08/15 12:32:04 naddy Exp $

    # This is the sshd server system-wide configuration file. See

    # sshd_config(5) for more information.

    # This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin

    # The strategy used for options in the default sshd_config shipped with

    # OpenSSH is to specify options with their default value where

    # possible, but leave them commented. Uncommented options override the

    # default value.

    #Port 22

    #AddressFamily any

    #ListenAddress 0.0.0.0

    #ListenAddress ::

    #HostKey /etc/ssh/ssh_host_rsa_key

    #HostKey /etc/ssh/ssh_host_ecdsa_key

    #HostKey /etc/ssh/ssh_host_ed25519_key

    # Ciphers and keying

    ^G Get Help ^O Write Out ^W Where Is ^K Cut Text ^J Justify ^C Cur Pos

    ^X Exit ^R Read File ^\ Replace ^U Uncut Text ^T To Spell ^_ Go To Line

  • #PermitRootLogin yes

    wenn du das"#" davor nicht weg machst , bleibt dieser Eintrag nur ein Komentar!

    PermitRootLogin yes

    MUSS der Eintrag lauten, wenn der Parameter greifen soll !


    Also ändern und rebooten

    Zum Passwort bei root

    lasse zum testen auch Sonderzeichen wie "!" weg !

    also NICHT 1234!

    sondern nur 123456


    PS: Ohne grundsätzliche PC / Linux - Kenntnisse wird das ein sehr dorniger weg für Dich.

  • genau deswegen wenn ich mir nen neuen Pi hole und die Sd mit Jessie gemacht habe, kommt immer in der boot partition die datei ssh rein, dann greift automatisch der ssh login beim booten.

    So kann man sich viele Probleme ersparen:)

    Grüße Franz

    Raspberry Pi3, ioBroker, Broadlink Pro, Broadlink Mini, Harmony Hub, WD My Cloud, Funksteckdosen 433 MHz, Danny3 Sonoff Touch, Osram Smart+Plug, TP-Link HS 110 Wlan Steckdose, Xiaomi Yeelight, 2 Xiaomi Gateways + sämtliche Sensoren, Alexa, Google Home, iPad Air2, iMac.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!