Re: OT: SFTP with lftp

2024-05-27 Thread Samuel Sieb
On 5/27/24 3:49 AM, Frederic Muller wrote: ok found out the problem: basically lftp tries all the keys in ~/.ssh directory and the ssh daemon on most OS will deny access after 5 attempts with the message Too many authentication failures. Since I ssh to that machine using 'ForwardAgent Yes' it's

Re: OT: SFTP with lftp

2024-05-27 Thread Samuel Sieb
On 5/27/24 2:47 AM, Frederic Muller wrote: And here is what a --debug gives me: ~> ls Running connect program (ssh -a -x -s -l username -p 22 IP sftp) ---> sending a packet, length=5, type=1(INIT), id=0 <--- Received disconnect from IP port 22:2: Too many authentication failures and it n

Re: OT: SFTP with lftp

2024-05-27 Thread Frederic Muller
On 27/05/2024 16:47, Frederic Muller wrote: On 23/05/2024 12:56, Frederic Muller wrote: On 23/05/2024 12:49, Samuel Sieb wrote: On 5/22/24 9:59 PM, Frederic Muller wrote: 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

Re: OT: SFTP with lftp

2024-05-27 Thread Frederic Muller
On 23/05/2024 12:56, Frederic Muller wrote: On 23/05/2024 12:49, Samuel Sieb wrote: On 5/22/24 9:59 PM, Frederic Muller wrote: 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 wrote: I thought someone here coul

Re: OT: SFTP with lftp

2024-05-22 Thread Frederic Muller
On 23/05/2024 12:49, Samuel Sieb wrote: On 5/22/24 9:59 PM, Frederic Muller wrote: 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 wrote: I thought someone here could help me out. I am using lftp to automate s

Re: OT: SFTP with lftp

2024-05-22 Thread Samuel Sieb
On 5/22/24 9:59 PM, Frederic Muller wrote: 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 wrote: I thought someone here could help me out. I am using lftp to automate some file copy on Ubuntu 20.04. The origin

Re: OT: SFTP with lftp

2024-05-22 Thread Frederic Muller
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 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 hav

Re: OT: SFTP with lftp

2024-05-22 Thread Samuel Sieb
On 5/22/24 1:53 PM, Chris Adams wrote: Once upon a time, Samuel Sieb said: I'm not confusing anything. I checked it before posting. :-) From strace: execve("/bin/sh", ["sh", "-c", "ssh -a -x -s sftp"] I do not think that means what you think it means. The -s option turns it from running

Re: OT: SFTP with lftp

2024-05-22 Thread Jeffrey Walton
On Wed, May 22, 2024 at 4:43 PM Jonathan Billings wrote: > > On May 22, 2024, at 16:32, Samuel Sieb wrote: > > > >> 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

Re: OT: SFTP with lftp

2024-05-22 Thread Chris Adams
Once upon a time, Samuel Sieb said: > I'm not confusing anything. I checked it before posting. :-) > From strace: > execve("/bin/sh", ["sh", "-c", "ssh -a -x -s sftp"] I do not think that means what you think it means. The -s option turns it from running a remote command to requesting a remot

Re: OT: SFTP with lftp

2024-05-22 Thread Samuel Sieb
On 5/22/24 1:43 PM, Jonathan Billings wrote: On May 22, 2024, at 16:32, Samuel Sieb wrote: 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

Re: OT: SFTP with lftp

2024-05-22 Thread Jonathan Billings
On May 22, 2024, at 16:32, Samuel Sieb wrote: > >> 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 cal

Re: OT: SFTP with lftp

2024-05-22 Thread Samuel Sieb
On 5/22/24 9:57 AM, Jonathan Billings wrote: On May 21, 2024, at 05:01, Frederic Muller 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

Re: OT: SFTP with lftp

2024-05-22 Thread Samuel Sieb
On 5/22/24 9:57 AM, Jonathan Billings wrote: By “SFTP” do you mean FTP over SSL/TLS, or the OpenSSH “sftp” backend which runs over the SSH protocol? Two completely different protocols. It's easy to confuse, but the first is actually "FTPS". lftp can do both. -- _

Re: OT: SFTP with lftp

2024-05-22 Thread Jonathan Billings
On May 21, 2024, at 05:01, Frederic Muller 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. > > On ubuntu it see

Re: OT: SFTP with lftp

2024-05-21 Thread George N. White III
On Tue, May 21, 2024 at 6:00 AM Frederic Muller wrote: > Hi! > > 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. > > On ubu

OT: SFTP with lftp

2024-05-21 Thread Frederic Muller
Hi! 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. On ubuntu it seems by default lftp is not compiled with sftp support as