opendal icon indicating copy to clipboard operation
opendal copied to clipboard

Add sftp support for opendal

Open Xuanwo opened this issue 3 years ago • 2 comments

We can use https://docs.rs/ssh2/latest/ssh2/struct.File.html for that

Xuanwo avatar Sep 25 '22 12:09 Xuanwo

Seems pretty interesting. I will try to work on it if it has not been taken.

PragmaTwice avatar Mar 09 '23 09:03 PragmaTwice

I have assigned this task to you. Enjoy!

Xuanwo avatar Mar 09 '23 09:03 Xuanwo

👍🏻 looking forward to this feature!

gaby avatar Apr 04 '23 00:04 gaby

Could I ask the progress of this feature? If possible, I am willing to help implement it.

silver-ymz avatar Apr 27 '23 03:04 silver-ymz

Hi, @PragmaTwice, are you currently working on this issue?

Xuanwo avatar Apr 27 '23 03:04 Xuanwo

Some attempts but put on hold, feel free to take it over.

PragmaTwice avatar Apr 27 '23 03:04 PragmaTwice

We can use https://docs.rs/ssh2/latest/ssh2/struct.File.html for that

This library doesn't support async operation. Maybe we need https://docs.rs/async-ssh2-lite/latest/async_ssh2_lite/sftp/struct.AsyncSftp.html

silver-ymz avatar Apr 27 '23 13:04 silver-ymz

This library doesn't support async operation. Maybe we need https://docs.rs/async-ssh2-lite/latest/async_ssh2_lite/sftp/struct.AsyncSftp.html

A few months ago, I tried using openssh-sftp-client library and found it to be quite promising. (it is full async)

PragmaTwice avatar Apr 27 '23 13:04 PragmaTwice

This library doesn't support async operation. Maybe we need https://docs.rs/async-ssh2-lite/latest/async_ssh2_lite/sftp/struct.AsyncSftp.html

A few months ago, I tried using openssh-sftp-client library and found it to be quite promising. (it is full async)

That one looks good. One thing to keep in mind is the suggestions from this issue: https://github.com/openssh-rust/openssh-sftp-client/issues/61

gaby avatar Apr 27 '23 13:04 gaby

openssh only works on unix. Should we concern the compatibility for windows?

silver-ymz avatar Apr 27 '23 14:04 silver-ymz

And openssh only supports keypair-based authentication. This limits the functionality of password logins.

silver-ymz avatar Apr 27 '23 14:04 silver-ymz

openssh only works on unix. Should we concern the compatibility for windows?

I prefer to make it work first and then consider other possibilities.

Xuanwo avatar Apr 27 '23 15:04 Xuanwo

Basic support for sftp has been added. Thanks @silver-ymz.

Xuanwo avatar May 07 '23 15:05 Xuanwo