On 23/05/2024 03:31, Samuel Sieb wrote:
On 5/22/24 9:57 AM, Jonathan Billings wrote:
On May 21, 2024, at 05:01, Frederic Muller <f...@cm17.com> wrote:

I thought someone here could help me out. I am using lftp to automate some file copy on Ubuntu 20.04. The originating server is switching to SFTP and I have about a week for testing. It works fine by default with F40.

You didn't explain what isn't working.  What is happening?  What is in the logs?
Hence my question... how do I troubleshoot the issue since I'm seeing nothing :-) to which George replied promptly. And as they were a lot of messages which I missed I am supposed to be using SFTP.

On ubuntu it seems by default lftp is not compiled with sftp support as I didn't get any trace of *libssl*.so using ldd.

It doesn't link directly, so you won't see that.

Actually you are right. I was using https://how-to.fandom.com/wiki/How_to_use_lftp_as_a_sftp_client as a reference and while under F40 ldd indeed doesn't link to libssl, "my" compiled version under Ubuntu does. I therefore can deduct that it is not necessary since F40 works fine without showing any linked library.


I then removed it, compiled a new version with sftp support, checked with ldd for libssl.so and got it but it is still not working. Any idea what could be the problem then, or how to further troubleshoot?

That's strange, the Fedora one doesn't even show that.  Which file did you look at? You can look in /usr/lib64/lftp/{version} to see what protocols are supported.  At least that's the directory on Fedora.  A manual compile might use /usr/local or something else.

on F40 I looked at /usr/bin/lftp, indeed on Ubuntu the compiled version is in ~./local/bin .
By “SFTP” do you mean FTP over SSL/TLS, or the OpenSSH “sftp” backend which runs over the SSH protocol? Two completely different protocols.

I suspect that lftp just calls out to the OpenSSH sftp binary if it uses SSH.

Sort of.  It calls "ssh" to run "sftp" on the other end.

Anyway I need to troubleshoot now, which I haven't done so far.

Thank you all and more later then.

Fred


--
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

--
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to