file transfer using telnet
Results 1 to 4 of 4

Thread: file transfer using telnet

  1. #1

    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

  2. #2
    Master-Jedi-Pimps0r & Moderator thehorse13's Avatar
    Join Date
    Dec 2002
    Location
    Washington D.C. area
    Posts
    2,883
    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]

    Examples:



    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 charlie@talltoad.cpc.unc.edu:/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 mmouse@statapps.unc.edu:~mmouse

    You would then be prompted for the passwd for the mmouse account on statapps.unc.edu.

    --TH13
    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

  3. #3
    Senior Member
    Join Date
    Jan 2002
    Posts
    1,207
    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?

    Sounds weird.

    Slarty

  4. #4
    Senior Member
    Join Date
    Jan 2002
    Posts
    371
    Slarty is correct

    ....if your interested, have a read about how Active and Passive FTP work:

    http://www.slacksite.com/other/ftp.html
    SoggyBottom.

    [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]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •