https://github.com/ewpa/LibSSH-ESP32
This is a port of the excellent libssh.org library to an Arduino library for the ESP32 microcontroller and its variants.
It lets you run an SSH server, SSH client, and SCP client on your ESP32 and use it over WiFi and Ethernet. Examples are provided for each of these functions, as well as an over the air (OTA) flashing example.