Talk:Howto use lftp as a sftp client

it should also work when compiled with TLS, for instance, the following is from lftp that comes with debian "lenny" :

kenneth@gilgamesh:~$ lftp -v LFTP | Version 3.5.6 | Copyright (c) 1996-2006 Alexander V. Lukyanov LFTP is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. There is absolutely no warranty for LFTP. See COPYING for details. Send bug reports and questions to . Libraries used: Readline 5.2, Expat 1.95.8, GnuTLS 1.4.4, zlib 1.2.3

kenneth@gilgamesh:~$ ldd `which lftp` | egrep 'ssl|tls' libgnutls.so.13 => /usr/lib/libgnutls.so.13 (0xb7ea6000) libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb7e17000) libutil.so.1 => /lib/tls/i686/cmov/libutil.so.1 (0xb7dde000) libresolv.so.2 => /lib/tls/i686/cmov/libresolv.so.2 (0xb7d8a000) libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7d86000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7c4a000) libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7c37000)

you still have to be sure of a few options..

kenneth@gilgamesh:~/cvs/synthdiy$ lftp lftp :~> set ftp:ssl-allow true lftp :~> set ftp:ssl-force true lftp :~> set ftp:ssl-auth TLS lftp :~> open sftp://sftp.ning.com:22 lftp sftp.ning.com:~> user kenneth Password: lftp kenneth@sftp.ning.com:~> ls  drwx--   1 0        0               0 May 06 06:02 synthdiy

I can't say i entirely understand what you are saying but my lftp isn't linked to tls

zymos@PDP-4 ~ $ lftp -v LFTP | Version 3.7.0 | Copyright (c) 1996-2008 Alexander V. Lukyanov

LFTP is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. There is absolutely no warranty for LFTP. See COPYING for details.

Send bug reports and questions to .

Libraries used: Readline 5.2 zymos@PDP-4 ~ $ ldd /usr/bin/lftp linux-gate.so.1 => (0xffffe000) liblftp-jobs.so.0 => /usr/lib/liblftp-jobs.so.0 (0xb7f09000) liblftp-tasks.so.0 => /usr/lib/liblftp-tasks.so.0 (0xb7ebe000) libreadline.so.5 => /lib/libreadline.so.5 (0xb7e8e000) libutil.so.1 => /lib/libutil.so.1 (0xb7e8a000) libncurses.so.5 => /lib/libncurses.so.5 (0xb7e49000) libresolv.so.2 => /lib/libresolv.so.2 (0xb7e36000) libdl.so.2 => /lib/libdl.so.2 (0xb7e32000) libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6 (0xb7d51000) libm.so.6 => /lib/libm.so.6 (0xb7d2b000) libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1 (0xb7d20000) libc.so.6 => /lib/libc.so.6 (0xb7bf0000) /lib/ld-linux.so.2 (0xb7f54000) ZyMOS 18:42, 27 May 2008 (UTC)

Hi ZyMOS, I just meant lftp does not need to be linked to SSL if it is linked to TLS

I came across this page while googling for possible reasons why lftp + sftp wasn't working for me. In my case it turned out to be ftp:ssl-allow being set to false for some reason in my ~/.lftprc, but I thought I would point out that TLS works in place of SSL

I was hoping to dispel confusion in the case of newbies finding this page in a similar fashion, who might not realize TLS works as a replacement for SSL.. rereading my previous message, I acknowledge it was a bit terse, probably causing more confusion than it prevented
 * Cool, i get it now, thanks ZyMOS 19:26, 29 May 2008 (UTC)

i'm confused. isn't "sftp" => "ftp over ssh" while "ftps" is "ftp over ssl"? your post seems to talk about ftps at the detail level.