Hi,
I want to lftp with my machine FinalMachine
which is in my office. This machine cannot
be seen from home, but is known by IntermediateMachine.
I can do that with ftp instead of lftp as follows:
1-ftp on IntermediateMachine + I am asked for a login
and an intermediate password
2-I send the command user MyName@FinalMachine and
I am asked for a password
3- I can start to send standard ftp commands.
With lftp, I tried to reproduce the 3 steps above.
It seems to me that after 1 and 2, I am not yet ``connected''
When I proceed the third step, lftp tries to establish
a connection with IntermediateMachine, telling that I am
MyName@FinalMachine which of course doesn't work.
The answers from the server are reproduced below,
both with ftp and lftp, with IntermediateMachine=edgar
and FinalMachine=vadius
Can anyone help ??
Thanks in advance, Laurent.
################################################################
with ftp
################################################################
ftp edgar.univ-angers.fr
Connected to bastion.univ-angers.fr.
220-Proxy first requires authentication
220 edgar.univ-angers.fr FTP proxy (Version V2.1) ready.
Name (edgar.univ-angers.fr:laurent): evain
331 Enter authentication password for evain
Password:
230 User authenticated to proxy
ftp> user evain@vadius
331-(----GATEWAY CONNECTED TO vadius----)
331-(220 vadius FTP server (Version 1.7.212.2 Tue Apr 21 12:14:46 GMT 1998) ready.)
331 Password required for evain.
Password:
230 User evain logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for /usr/bin/ls.
total 288
-rw------- 1 evain users 5 Jun 11 14:51 %backup%~
....
ftp>
################################################################
with lftp
################################################################
lftp -du evain edgar.univ-angers.fr
Password:
lftp [EMAIL PROTECTED]:~> user evain@vadius
Password:
lftp evain@[EMAIL PROTECTED]:~> ls
---- Connecting to edgar.univ-angers.fr (193.49.146.1) port 21
<--- 220-Proxy first requires authentication
<--- 220 edgar.univ-angers.fr FTP proxy (Version V2.1) ready.
---> USER evain@vadius
<--- 331 Enter authentication password for evain
---> PASS XXXX
<--- 501 Permission Denied.
---> QUIT
---- Closing control socket
ls: Login failed
lftp evain@[EMAIL PROTECTED]:~>