Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Praktische Anwendungen (Showcase)
    4. [Vorstellung] Meine dritte VIS

    NEWS

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    [Vorstellung] Meine dritte VIS

    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hofmannha @Kuddel last edited by

      @Kuddel
      über die Konsole geht es, nachdem ich das Paßwort eingegeben habe.
      ssh root@192.168.178.39 grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage "%"}'
      Unbenannt.PNG

      K I 2 Replies Last reply Reply Quote 0
      • K
        Kuddel @hofmannha last edited by

        @hofmannha die pw Anfrage ist ein Zeichen dafür das der Public ssh Key nicht korrekt ausgetauscht wurde.

        ich vermute mal der User ioBroker hat keinen Zugriff auf den Schlüssel

        H 1 Reply Last reply Reply Quote 0
        • T
          ToniMahoni @Kuddel last edited by

          @Kuddel
          Hallo, unter Adaptern finde ich z.B. nur Web-Speedy Adapter. Meintest du genau dieser, welchen du nun benutzt?

          K 1 Reply Last reply Reply Quote 0
          • K
            Kuddel @ToniMahoni last edited by

            @ToniMahoni jo das ist er

            1 Reply Last reply Reply Quote 0
            • H
              hofmannha @Kuddel last edited by

              @Kuddel
              Moin Kuddel,
              da habe ich ja garkeine Ahnung von. Was muß ich dann machen?
              Kannst Du mir da mal Schritt für Schritt helfen, so das ich es verstehe?

              K 1 Reply Last reply Reply Quote 0
              • K
                Kuddel @hofmannha last edited by

                @hofmannha

                per ssh auf deiner iobroker instanz anmelden
                und den schlüssel anlegen und auf zielsystem kopieren

                sudo su - iobroker -s /bin/bash
                cd ~/.ssh
                ssh-keygen
                Enter file in which to save the key (/home/iobroker/.ssh/id_rsa): iobroker_id_rsa
                Enter passphrase (empty for no passphrase):
                Enter same passphrase again:
                Your identification has been saved in iobroker_id_rsa.
                Your public key has been saved in iobroker_id_rsa.pub.
                
                cd /home/iobroker/.ssh/
                scp iobroker_id_ras.pub root@IP_DES_ZIELS:/root/iobroker_id_rsa.pub
                
                

                Auf Zielsystem anmelden und Schlüssel hinzufügen

                cd /root/
                cat iobroker_id_rsa.pub >> .ssh/authorized_keys
                
                H 1 Reply Last reply Reply Quote 0
                • H
                  hofmannha @Kuddel last edited by

                  @Kuddel
                  Hallo Kuddel,
                  Danke für die Info. Aber ich komme nicht klar damit.
                  Er fragt an der Stelle nach einem Passwort:
                  Unbenannt.PNG
                  Welches Passwort?

                  K 1 Reply Last reply Reply Quote 0
                  • K
                    Kuddel @hofmannha last edited by

                    @hofmannha ja das ist richtig.

                    du kopierst auf eine Pi oder ?

                    dann versuch mal

                    scp iobroker_id_ras.pub pi@192.168.178.25:/root/iobroker_id_rsa.pub
                    
                    H 1 Reply Last reply Reply Quote 0
                    • H
                      hofmannha @Kuddel last edited by

                      @Kuddel
                      ja ich bin auf dem Pi4 drauf, wo iobroker läuft.
                      Ich habe das Paßwort von diesem Pi eingegeben, aber das nimmt
                      er nicht.

                      K 1 Reply Last reply Reply Quote 0
                      • K
                        Kuddel @hofmannha last edited by

                        @hofmannha du musst den user (root, pi, admin / je nach dem was da eingerichtet wurde) und das PW vom Zielsystem für den scp befehl angeben

                        H 1 Reply Last reply Reply Quote 0
                        • H
                          hofmannha @Kuddel last edited by

                          @Kuddel
                          Ich habe nur ein User angelegt pi mit Paßwort. Sonst nichts.
                          Was müsste ich dann eingeben? Ich stehe auf dem Schlauch.

                          K 1 Reply Last reply Reply Quote 0
                          • K
                            Kuddel @hofmannha last edited by

                            @hofmannha

                            scp iobroker_id_ras.pub pi@192.168.178.25:/root/iobroker_id_rsa.pub 
                            
                            H 1 Reply Last reply Reply Quote 0
                            • H
                              hofmannha @Kuddel last edited by

                              @Kuddel
                              Das kommt dabei raus
                              Unbenannt.PNG

                              H K 2 Replies Last reply Reply Quote 0
                              • H
                                hofmannha @hofmannha last edited by

                                @hofmannha sagte in [Vorstellung] Meine dritte VIS:

                                @Kuddel
                                Das kommt dabei raus
                                Unbenannt.PNG

                                Was muß ich hier eingeben?
                                Enter passphrase (empty for no passphrase):

                                K 1 Reply Last reply Reply Quote 0
                                • K
                                  Kuddel @hofmannha last edited by

                                  @hofmannha dann probiere mal

                                  scp iobroker_id_ras.pub pi@192.168.178.25:/usr/iobroker_id_rsa.pub 
                                  

                                  und später

                                  cd /usr/
                                  cat iobroker_id_rsa.pub >> .ssh/authorized_keys
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • K
                                    Kuddel @hofmannha last edited by

                                    @hofmannha sagte in [Vorstellung] Meine dritte VIS:

                                    @hofmannha sagte in [Vorstellung] Meine dritte VIS:

                                    @Kuddel
                                    Das kommt dabei raus
                                    Unbenannt.PNG

                                    Was muß ich hier eingeben?
                                    Enter passphrase (empty for no passphrase):

                                    einfach mit ENTER bestätigen

                                    H 1 Reply Last reply Reply Quote 0
                                    • H
                                      hofmannha @Kuddel last edited by

                                      @Kuddel
                                      Ich glaube ich gebe auf.
                                      Unbenannt.PNG
                                      Mehrmals versucht.

                                      K 1 Reply Last reply Reply Quote 0
                                      • K
                                        Kuddel @hofmannha last edited by

                                        @hofmannha

                                        mach mal

                                        cd root
                                        cd .ssh
                                        ls -l
                                        

                                        Bei mir sieht das dann so aus:

                                        66197fbc-9465-40c4-b6ea-bc5af6505e8b-grafik.png

                                        H 1 Reply Last reply Reply Quote 0
                                        • H
                                          hofmannha @Kuddel last edited by

                                          @Kuddel
                                          Moin Kuddel,
                                          ich konnte gestern nichts mehr ausprobieren.
                                          Bei mir sieht es so aus:
                                          Unbenannt.PNG

                                          K 1 Reply Last reply Reply Quote 0
                                          • K
                                            Kuddel @hofmannha last edited by

                                            @hofmannha dann lege mal die datei manuell an

                                            nano authorized_keys
                                            

                                            STRG + O fürs Speichern
                                            STRG + X zum schließen

                                            und dann nochmal den Public Key in die Datei schreiben

                                            cat iobroker_id_rsa.pub >> .ssh/authorized_keys
                                            
                                            H 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            914
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

                                            vis vis projekte
                                            83
                                            640
                                            138659
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo