OTA over SCP

Fabian edited this page Jan 12, 2018 · 18 revisions

How to setup and configure "OTA over SCP" upload for PlatformIO. The uploader pushes .bin files to remote OTA server using SCP (SSH connection). Images can be served to Sonoff-Tasmotas from there.

Configuration

To upload .bin images to OTA server using SCP, edit the following lines under target environment:

; *** Upload file to OTA server using SCP
upload_port = USER@HOST:/path
extra_scripts = pio/sftp-uploader.py

upload_port should be modified to reflect user, host and path on the host where images should be uploaded.

Requirements

SSH communication between the build server and OTA server should be pre-configured so that it doesn't require password (pre-shared keys).

Add the pre-shared key

On a linux client machine type the following to generate the key. Press enter three times (without any input):

ssh-keygen -t rsa -C "YOUR OWN KEY DESCRIPTION"

Copy the key to your ssh server. You need to confirm this action. Use your server ssh password (one last time):

ssh-copy-id -i ~/.ssh/id_rsa.pub USER@HOST

Optionally, reload the ssh service:

sudo /etc/init.d/ssh restart

Upload Tasmota

Easy compilation and upload can be performed from the icons at the left side of the PlatformIO screen or use Ctrl + Alt + U to upload (will build if needed).

Home
Theo's Tasmota Tips
What's New

Getting Started

Upload tools

Usage

Devices - Additional Info

Home Automation Integration

Other Integrations

Further Topics

ESP32

Misc

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.