Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nopnop2002/esp-idf-ssh-client
ssh client for esp-idf
https://github.com/nopnop2002/esp-idf-ssh-client
esp-idf esp32 libssh2 ssh ssh-client
Last synced: 3 months ago
JSON representation
ssh client for esp-idf
- Host: GitHub
- URL: https://github.com/nopnop2002/esp-idf-ssh-client
- Owner: nopnop2002
- License: mit
- Created: 2021-05-29T01:51:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-23T12:03:59.000Z (over 1 year ago)
- Last Synced: 2024-10-11T13:44:52.341Z (4 months ago)
- Topics: esp-idf, esp32, libssh2, ssh, ssh-client
- Language: C
- Homepage:
- Size: 21.5 KB
- Stars: 15
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# esp-idf-ssh-client
ssh client for esp-idf.
You can use the ssh API to execute remote command.
This project use [this](https://github.com/libssh2/libssh2) ssh library.# Software requirements
ESP-IDF Ver4.4
This is because this version supports ESP32-S3 and uses mbed TLS 2.28.1.
ESP-IDF Ver5 has been updated to mbed TLS 3.x.x, but [this](https://github.com/libssh2/libssh2) ssh library does not support mbed TLS 3.x.x.# Installation
```
git clone https://github.com/nopnop2002/esp-idf-ssh-client
cd esp-idf-ssh-client/
git clone https://github.com/libssh2/libssh2 components/libssh2
cp esp-idf/libssh2_config.h components/libssh2/include
cp esp-idf/CMakeLists.txt components/libssh2
idf.py set-target {esp32/esp32s2/esp32s3/esp32c3}
idf.py menuconfig
idf.py flash
```# Configuration
![config-main](https://user-images.githubusercontent.com/6020549/120054821-3d755500-c06d-11eb-950c-d357d0a9fdef.jpg)
![config-app](https://user-images.githubusercontent.com/6020549/166416531-7fa74d94-86fc-4cac-a568-74de07d7a051.jpg)- SSH Host
IP address or mDNS name.# ssh command list
ssh command list is defined ssh/command.txt.
```
$ cat ssh/command.txt
uname -a
ls -l
python --version
```# Screen Shot
![ssh-client-1](https://user-images.githubusercontent.com/6020549/120056024-b1ffc200-c074-11eb-8507-1bb566b0cc7c.jpg)# Reference
https://github.com/nopnop2002/esp-idf-scp-clientYou can use scp and ssh to do heavy processing that esp32 alone cannot.
- Copy file from esp32 to remote using scp-put.
- Execute remote command using ssh-client.
- The processing result is redirected to a file.
- Copy file from remote to esp32 using scp-get.For example, image processing:
- Take a picture using the esp32-cam.
- Send image files to remote using scp-put.
- Image processing such as shading is performed on the remote side using scp-client.
- Receive image file from remote using scp-get.https://github.com/nopnop2002/esp-idf-telnet-client
This also works with ESP-IDF V5.X.