LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-28-2013, 05:29 PM   #1
vikler
LQ Newbie
 
Registered: Oct 2013
Posts: 4

Rep: Reputation: Disabled
Unhappy LFTP problem when using proxies


Hi everyone. 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:
Code:
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:
Code:
 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:
Code:
cd: Access failed: 401 Authentication Required (~)
please someone help!
 
Old 11-02-2013, 03:48 AM   #2
vikler
LQ Newbie
 
Registered: Oct 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
anyone? I've asked on many forums, no one seems to know how to help me
 
Old 11-02-2013, 12:58 PM   #3
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Hi

Maybe you need some other auth-type? From "man lftp":

Code:
    ftp:proxy-auth-type (string)
              When set to ``joined'', lftp sends ``user@proxy_user@ftp.example.org'' as user name to proxy, and ``password@proxy_password'' as password.

              When  set  to  ``joined-acct'',  lftp  sends  ``user@ftp.example.org proxy_user'' (with space) as user name to proxy. The site password is sent as usual and the proxy password is
              expected in the following ACCT command.

              When set to ``open'', lftp first sends proxy user and proxy password and then ``OPEN ftp.example.org'' followed by ``USER user''.  The site password is then sent as usual.

              When set to ``user'' (default), lftp first sends proxy user and proxy password and then ``user@ftp.example.org'' as user name.  The site password is then sent as usual.

              When set to ``proxy-user@host'', lftp first sends ``USER proxy_user@ftp.example.org'', then proxy password. The site user and password are then sent as usual.
 
Old 11-02-2013, 01:34 PM   #4
vikler
LQ Newbie
 
Registered: Oct 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Guttorm View Post
Hi

Maybe you need some other auth-type? From "man lftp":

Code:
    ftp:proxy-auth-type (string)
              When set to ``joined'', lftp sends ``user@proxy_user@ftp.example.org'' as user name to proxy, and ``password@proxy_password'' as password.

              When  set  to  ``joined-acct'',  lftp  sends  ``user@ftp.example.org proxy_user'' (with space) as user name to proxy. The site password is sent as usual and the proxy password is
              expected in the following ACCT command.

              When set to ``open'', lftp first sends proxy user and proxy password and then ``OPEN ftp.example.org'' followed by ``USER user''.  The site password is then sent as usual.

              When set to ``user'' (default), lftp first sends proxy user and proxy password and then ``user@ftp.example.org'' as user name.  The site password is then sent as usual.

              When set to ``proxy-user@host'', lftp first sends ``USER proxy_user@ftp.example.org'', then proxy password. The site user and password are then sent as usual.
thanks for replying!
I am trying the open type. But I still get the same error
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lftp problem mesh2005 Linux - Software 4 05-03-2007 07:06 AM
problem in lftp gopi_raghu Linux - Software 2 02-08-2007 05:31 AM
Question about lftp problem! CN_jianzi Linux - Software 1 10-11-2006 01:31 PM
lftp problem bipins1979 Linux - General 1 06-21-2006 10:20 AM
lftp Problem / Question LinuxGeek Linux - Software 5 11-02-2004 10:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration