Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Dateiupload auf ext Server per SFTP

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Dateiupload auf ext Server per SFTP

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

      @UncleSam Unter meinen iobroker ist ein ubuntu. ftp und sftp gehen beides.

      UncleSam 1 Reply Last reply Reply Quote 0
      • UncleSam
        UncleSam Developer @holgerwolf last edited by

        @holgerwolf Dann kannst du ja die verwenden.

        H 1 Reply Last reply Reply Quote 0
        • H
          holgerwolf @UncleSam last edited by

          @UncleSam Wenn's so einfach wäre 😉
          ich kann ja kein login und pwd im Befehl übergeben.
          Wie lautet denn der Befehl um in einer Zeile sich am Server mit Login und Passwort anzumelden und eine Datei zu übertragen?

          A 1 Reply Last reply Reply Quote 0
          • A
            Ahnungsbefreit @holgerwolf last edited by

            @holgerwolf Ich hab's nicht probiert aber lt. einigen Foren sollte das hier gehen:

            sshpass -p "my_password" sftp -oPort=9999 user@host:dir/file.log
            
            H 1 Reply Last reply Reply Quote 0
            • H
              holgerwolf @Ahnungsbefreit last edited by

              @Ahnungsbefreit Halbe Miete 😉
              Damit kann ich ein "get" machen. Port muss noch auf 22 gesetzt werden.
              Weiß noch jemand wie ein "put" aussieht?

              1 Reply Last reply Reply Quote 0
              • H
                holgerwolf last edited by

                Für alle die sowas auch suchen:

                sshpass -p "passwort" sftp -oPort=22 user@server.de <<< $'put dir/file'
                
                H 1 Reply Last reply Reply Quote 0
                • H
                  holgerwolf @holgerwolf last edited by

                  Zu früh gefreut.

                  Das läuft zwar im Terminal aber nicht im Blockly. Leider gibt es auch keine Fehlermeldung im Log dazu.

                  UncleSam 1 Reply Last reply Reply Quote 0
                  • UncleSam
                    UncleSam Developer @holgerwolf last edited by

                    @holgerwolf Ich bin mir nicht ganz sicher, aber kannst du mal prüfen, ob es mit dem scp Befehl funktioniert? Den benutze ich immer um Dateien rumzukopieren. Der ist nicht so "interaktiv" wie der sftp Befehl.

                    H 1 Reply Last reply Reply Quote 0
                    • H
                      holgerwolf @UncleSam last edited by

                      @UncleSam
                      Geht leider nicht 😞

                      This account is restricted by rssh.
                      Allowed commands: sftp 
                      
                      
                      UncleSam 1 Reply Last reply Reply Quote 0
                      • UncleSam
                        UncleSam Developer @holgerwolf last edited by

                        @holgerwolf Dann bleibt dir wohl nur ein Batch mit allen Befehlen auf deinem System anzulegen und die -b Option zu verwenden: z.B. hier https://unix.stackexchange.com/a/105868

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        420
                        Online

                        31.8k
                        Users

                        80.0k
                        Topics

                        1.3m
                        Posts

                        javascript
                        4
                        17
                        998
                        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