Login failed: 530 Non-anonymous sessions must use encryption - lftp

OS: OS X 10.9.3
lftp version:
LFTP | Version 4.5.1 | Copyright (c) 1996-2014 Alexander V. Lukyanov
After upgraded to lftp 4.5.1, I got this error when mput files to the same ftp.
Is there any advice? Thanks

try this:
lftp -e 'set ssl:verify-certificate false' -u username,password -p 1234 ftp.example.com
or add config in ~/.lftprc
set ssl:verify-certificate false

Related

Transfer files without LFTP hanging

I want to transfer a file using LFTP.
Connection Type: Passive connection Implicit SSL
Protocol: FTPS
Steps followed by me:
-bash-4.1$ set ftp:ssl-protect-data true
-bash-4.1$ set ftps:initial-prot
-bash-4.1$ set ftp:ssl-force true
-bash-4.1$ set ftp:ssl-protect-data true
-bash-4.1$ set ssl:verify-certificate off
-bash-4.1$ lftp
lftp :~> open ftps.host.com
lftp ftps.host.com:~> user u001
Password:
lftp u001#ftps.host.com:~> pwd
ftp://u001#ftps.host.com
lftp u001#ftps.host.com:~> ls
Interrupt
lftp u001#ftps.host.com:~> cd folderName
Interrupt
lftp u001#ftps.host.com:~> ls -ltr
`ls -ltr' at 0 [Connecting...]
Telnet is connecting & working but LFTP seems to hang. Can anybody please provide a solution to this?
lftp seems to be unable to connect to the server. You can use debug command to enable verbose messages and see what happens in detail. One of possible reasons is an incorrect port number to connect to. You can specify a port number explicitly by -p NNN option to open command, or just use open ftp://u001#ftps.host.com:NNN where NNN is the port number.
BTW, the set commands should be given inside lftp.

Couchbase Server on Mac: cbdocloader not installed

I have installed Couchbase Server 3.0 on Mac OSX 1.9.5 using the package from couchbase, installed using all defaults, and I am not able to locate cbdocloader in the expected folder
/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/tools
The only tools available are:
cbanalyze-core
vbucketkeygen
vbuckettool
I do not see any information about the deprecation of this tool or an alternative approach to load data.
You are looking in the wrong folder, it's in bin and not tools:
[user:~] $ /Applications/Couchbase\ Server.app/Contents/Resources/couchbase-core/bin/cbdocloader -h
Usage: cbdocloader [options] <directory>|zipfile
Example: cbdocloader -u Administrator -p password -n 127.0.0.1:8091 -b mybucket -s 100 gamesim-sample.zip
Options:
-h, --help show this help message and exit
-u Administrator Username
-p password Password
-b mybucket Bucket
-n 127.0.0.1:8091 Node address
-s 100 RAM quota in MB

ldappaswordmodify doesn't accept -w - option

I use OpenDS package ( This is a very great LDAP soft) and I've got tiny problem with an option of ldappasswordmodify command
:~# ldappasswordmodify --version
OpenDS Directory Server 2.2.0
Build 20091123144827Z
--
Name Build number Revision number
Extension: snmp-mib2605 2.2.0 6181
~# ldappasswordmodify -h localhost -D "cn=Directory Manager" -w - -a "dn:uid=user,ou=People,dc=acme,dc=org"An error occurred while attempting to connect to the Directory Server: The
simple bind attempt failed
:~# ldappasswordmodify -h localhost -D "cn=Directory Manager" -w xxxxxxx -a "dn:uid=user,ou=People,dc=acme,dc=org"
The LDAP password modify operation was successful
Generated Password: F8F2R1W6V
I did research and I found this on the Oracle Site :
http://docs.oracle.com/cd/E19623-01/820-6171/ldappasswordmodify.html
-w, --bindPassword bindPassword
Use the bind password when authenticating to the directory server. This option can be used for simple authentication as well as password-based SASL mechanisms. This option must not be used in conjunction with --bindPasswordFile. To prompt for the password, type -w -.
What I did wrong?
Thank for your help.
I found this line working :
:~# read -s A ; ldappasswordmodify -h localhost -D "cn=Directory Manager" -w $A -a "dn:uid=user,ou=People,dc=acme,dc=org"
The LDAP password modify operation was successful
Generated Password: F8F2R1W6V
Thanks anyway

LFTP when used with proxies doesn't work

I can't seem to use LFTP with proxies that require authentification correctly on my Ubuntu server.
When I use it with proxy that doesn't require username/password everything seems fine:
lftp
lftp :~> set http:proxy http://HOST:PORT
lftp :~> set ftp:proxy http://HOST:PORT
lftp :~> open username:password#some.ftp.site.com
lftp username#some.ftp.site.com:~> get file.ext
file.ext
36352 bytes transferred in 10 seconds (3.5K/s)
lftp username#some.ftp.site.com:~> exit
but when I have to put username/password there is a problem:
lftp
lftp :~> set http:proxy http://proxylogin:proxypass#HOST:port
lftp :~> set ftp:proxy http://proxylogin:proxypass#HOST:port
lftp :~> open ftp://ftpuser:ftppass#ftpserv.com
answer:
cd: Access failed: 401 Authentication Required (~)
please someone help!
If you are trying to test:
lftp :~> set ftp:proxy http://proxylogin:proxypass#HOST:port
lftp :~> open ftpserv.com
lftp :~> USER ftpuser
password: ftppass
OR this other one to automate something:
lftp :~> set ftp:proxy http://proxylogin:proxypass#HOST:port
lftp :~> open ftpserv.com
lftp :~> USER ftpuser ftppass

Cannot connect to Yahoo Webhosting using lftp and FTPS from Ubuntu

I'm running Ubuntu 12.10, and I use Yahoo Webhosting, and I also have my own domain "example.com". I used to use FTP to transfer files to/from my webhosting account to update my website. But now Yahoo has just ended support for FTP, and now they require users to use only FTPS. I am happy about this change, because I know that FTP is insecure, and the move to FTPS is necessary. So I found lftp (http://lftp.yar.ru/), which seems to be a FTPS client that I could use to transfer files to/from Yahoo Webhosting. I was able to install it with "sudo apt-get install lftp", but when I try to connect to Yahoo Webhosting, it doesn't work.
Here's my system information:
user#hostname:~/Desktop >> more /etc/issue.net
Ubuntu 12.10
user#hostname:~/Desktop >> uname -a
Linux mojave 3.5.0-23-generic #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 V. 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, either version 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 even 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 LFTP. If not, see http://www.gnu.org/licenses/.
Send bug reports and questions to the mailing list .
Libraries used: Readline 6.2, GnuTLS 2.12.14, zlib 1.2.7
Here's how I used to do it:
user#hostname:~/Desktop >> ftp username#ftp.example.com
Now, I try the command below, but it doesn't work:
user#hostname:~/Desktop >> lftp username#ftp.example.com
Password:
lftp username#ftp.example.com:~> ls
WARNING: gnome-keyring:: couldn't connect to: /run/user/username/keyring-EvxB3g/pkcs11: No such file or directory
ls: Fatal error: Certificate verification: Not trusted
lftp username#ftp.example.com:~> quit
What am I doing wrong? How do I get lftp to create an FTPS session to Yahoo Webhosting?
Thanks in advance for any help!! I really appreciate it!!
Steve McMahon
It took me a while to figure this out but I was able to get it working using lftp like so:
lftp
set ssl:verify-certificate false
set ftp:ssl-force true
connect ftp.example.com
login username#somewhere.com
Password:
The method above worked for me connecting from Ubuntu 14 to Yahoo webhosting using ftps. To reduce typing, the lftp commands shown above where placed into a text file and -f was used to read the text file. Below are the two files, a shell script to run lftp and the 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
These retrieve a directory list from the root of the yahoo webhosting account. lftp exits and when script completes.

Resources