May 28th, 2003, 09:47 PM
file transfer using telnet
under certain circumstances i am forced to use only telnet to access a ftp server...........
i did connected using
#telnet xxx.xxx.xxx.xxx 21
USER and PASS works
but LIST doesnt work... it says "425 Use PORT or PASV first" ..the remote host is using vsFTP ???
i need to transfer files from this remote host onto my PC no ls dir get put worx..............
any help ??
thanks ..........in advance
May 28th, 2003, 09:58 PM
have you considered secure copy? It is a function of SSH (basically secure telnet). The syntax is beyond easy.
scp [-pr] [userid@][source host:][path to file] [userid@][destination host:][path to file]
From Unix to Unix
You want to copy files /home/vanacker/*.html (all files in that directory that end in ".html") on CPC Unix host talltoad.cpc.unc.edu to your public_html subdirectory on ATN's Isis system and you are logged into talltoad already. At the talltoad unix prompt, you would enter:
scp /home/vanacker/*.html isis.unc.edu:~vanacker/public_html
You would then be prompted for your passwd for the vanacker account on Isis.
From Unix to PC
You want to copy a file /htdocs/fred.html on Unix host talltoad.cpc.unc.edu into the current directory on your desktop PC, and your userid on talltoad.cpc.unc.edu is "charlie". In a DOS window, you would enter:
scp firstname.lastname@example.org:/htdocs/fred.html .
Here, the "." corresponds to the present working directory in your DOS window.
You would then be prompted for the passwd for the charlie account on talltoad.cpc.unc.edu.
From PC to Unix
You want to copy a file D:\myfiles\work.ppt on your desktop PC to your home directory on statapps, the ATN statistical computing platform, and your userid on statapps is "mmouse". In a DOS window, you would enter:
scp D:\myfiles\work.ppt email@example.com:~mmouse
You would then be prompted for the passwd for the mmouse account on statapps.unc.edu.
Our scars have the power to remind us that our past was real. -- Hannibal Lecter.
Talent is God given. Be humble. Fame is man-given. Be grateful. Conceit is self-given. Be careful. -- John Wooden
May 29th, 2003, 12:24 AM
You cannot transfer files over FTP using a telnet client. This is because the FTP protocol uses two connections - one for control and another for data. What you have established above is the control connection, the data connection needs to be established independently.
Can you really not use a FTP client?
May 29th, 2003, 02:25 AM
Slarty is correct
....if your interested, have a read about how Active and Passive FTP work:
[glowpurple]There were so many fewer questions when the stars where still just the holes to heaven - JJ[/glowpurple] [gloworange]I sure could use a vacation from this bull$hit, three ringed circus side show of freaks. - Tool. [/gloworange]