Can't connect to Yahoo web host using lftp and FTPS from Ubuntu

I am running Ubuntu 12.10 and I am using Webhosting Yahoo and I also have my own domain "example.com". I used FTP to transfer files to / from my web hosting account to update my site. But now Yahoo just ended FTP support and now they only require users to use FTPS. I am happy about this change because I know FTP is insecure and a migration to FTPS is necessary. So I found lftp ( http://lftp.yar.ru/ ), which seems to be an FTPS client that I can use to transfer files to / from Yahoo web host. I was able to install it using "sudo apt-get install lftp" but when I try to connect to Yahoo web host it doesn't work.

Here's my system information:

user @hostname: ~ / Desktop -> else /etc/issue.net Ubuntu 12.10

user @hostname: ~ / Desktop -> uname -a Linux mojave 3.5.0-23-generi # 35-Ubuntu SMP Thu Jan 24 13:05:29 UTC 2013 i686 i686 i686 GNU / Linux

user @hostname: ~ / Desktop -> lftp -v LFTP | Version 4.3.8 | Copyright (c) 1996-2012 Alexander Lukyanov

LFTP is free software: you can redistribute it and / or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, or option 3 of the license, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without the implied warranty of MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with the LFTP. If not, see http://www.gnu.org/licenses/ .

Submit bug reports and questions to the mailing list.

Libraries used: Readline 6.2, GnuTLS 2.12.14, zlib 1.2.7

This is how I did it: user @hostname: ~ / Desktop -> ftp username@ftp.example.com

Now I try below command but it doesn't work: user @hostname: ~ / Desktop -> lftp username@ftp.example.com Password: lftp username@ftp.example.com : ~> ls
WARNING: gnome-keyring :: not managed to connect to: / run / user / username / keyring-EvxB3g / pkcs11: no such file or directory ls: Fatal error: certificate validation: not trusted lftp username@ftp.example.com : ~> exit

What am I doing wrong? How to get lftp to create FTPS session for Yahoo web host?

Thanks in advance for your help! I really appreciate it!

Steve McMahon

+3


source to share


2 answers


It took me a while to figure it out, but I was able to get it to work using lftp like this:



lftp
set ssl:verify-certificate false
set ftp:ssl-force true
connect ftp.example.com
login username@somewhere.com
Password:

      

+7


source


The method above worked for connecting to Ubuntu 14 to Yahoo web hosting using ftps. To reduce typing, the lftp commands shown above placed in a text file and -f were used to read the text file. Below are two files, a shell script to run lftp and an lftp script.

The shell script contains:
  #! /bin/bash
  # script name: ylist.sh
  echo "Get Directory List from Yahoo via FTPS"
  lftp -f ylist-script.txt

The ylist-script.txt file contains:
  set ssl:verify-certificate false
  set ftp:ssl-force true
  connect ftp.example.com
  login username@example.com
  ls

      



They pull the directory listing from the root of the yahoo web hosting account. lftp exits and when the script exits.

0


source







All Articles