lavv17 / lftp

sophisticated command line file transfer program (ftp, http, sftp, fish, torrent)
http://lftp.yar.ru
GNU General Public License v3.0
1.08k stars 159 forks source link

lftp hangs on unknown sftp hosts #623

Closed hg77 closed 3 years ago

hg77 commented 3 years ago

I'm using

$ lftp -v
LFTP | Version 4.8.4 | Copyright (c) 1996-2017 Alexander V. Lukyanov
...
Libraries used: GnuTLS 3.6.13, idn2 2.2.0, Readline 8.0, zlib 1.2.11

$ ssh -V
OpenSSH_8.2p1 Ubuntu-4ubuntu0.2, OpenSSL 1.1.1f  31 Mar 2020

When accessing a host with sftp:// that was not yet added to .ssh/known_hosts lftp hangs in the connecting stage without error. The only hint was the strace containing

read(8, "\rThe authenticity of host 'XXXX"..., 65536) = 227

I would appreciate a more verbose error message. As a work around, you can connect to the host using ssh and verify it as known.

I hope this problem is not due to my old version. Thanks for the great work, much appreciated.

hg77 commented 3 years ago

This was apparently fixed in 4.9.0 https://github.com/lavv17/lftp/commit/0ad0732b8fbacd3519b4e3ecf8c394681b314672