Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildin ssh wishlist.... #404

Closed
mgliewe opened this issue Apr 11, 2022 · 4 comments
Closed

buildin ssh wishlist.... #404

mgliewe opened this issue Apr 11, 2022 · 4 comments

Comments

@mgliewe
Copy link

mgliewe commented Apr 11, 2022

I was pretty amazed to finally be able to connect via ssh to my board.. WTF, thats the f**ng way we want it.

On my wishlist:

  • more than one connection
  • proper scp support
  • puplic key auth

ADDENDUM: having scp support opens the gate to use vscode on-device....

@the0ne
Copy link
Collaborator

the0ne commented Apr 12, 2022

See CONFIG_LUA_RTOS_LUA_USE_SCP_NET
It's the scp client only, but the direction wouldn't matter too much, right?

Here's how to use it:

net.scp.get("your_domain.com",22,"/server_path/server_file","/local_path/local_file","user","pass")
net.scp.put("your_domain.com",22,"/local_path/local_file","/server_path/server_file","user","pass")
net.ssh.exec("your_domain.com",22,"/usr/bin/your_command and args","user","pass")

@mgliewe
Copy link
Author

mgliewe commented Apr 12, 2022

It's the scp client only, but the direction wouldn't matter too much, right?

well, it does if you want to mount the esp via sshfs... :)

@mgliewe
Copy link
Author

mgliewe commented May 2, 2022

  • proper scp support

after some research i realized that scp isn't really what i was aiming at, my intention was rather being able to sshmount an esp board.

Alas, dropbear doesn't suport the sftp protocol by its own, but relies on an sftp-server binary laying around in the OS to do the work.

So, to accomplish this point on the wishlist, one had to implement the sftp protocol inside the dropbear context.

On the bright sight, the protocol isn't to complicated in though of memory/resource constraints, and there are reference/example implementations one could adopt in lie of GPL.

The cyclone [1] lib came up one my research, which seemed to bee suitable for adoption due to its examplary well designed capsulation of function and OS dependencies...

lg maG

[1] https://www.oryx-embedded.com/products/CycloneSSH.html

@mgliewe
Copy link
Author

mgliewe commented May 31, 2022

since I'll leave development on this branch, I just close this one.

@mgliewe mgliewe closed this as completed May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants