Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

For our school project, a friend and I have been assigned the task of finding a way to to transfer files from computer to computer via telnet. Does anyone know of a simple set of commands, or a GUI tool, by which to do so?

share|improve this question
    
What have you tried? Are you using Windows or Linux or OSX? You really shouldn't be using telnet to transfer files. Try SFTP, or FTP if you don't care about people snooping through the passwords used to connect. I've always found Filezilla's FTP client and server to work well enough. –  Darth Android Jun 25 '13 at 20:17
    
Telnet isnt really the best way to transfer files. If you want to transfer files across command line, look into ssh and scp. –  agz Jun 25 '13 at 21:19
    
This problem was solved thirty years ago with the invention of FTP, and has been solved much more reliably since with SCP, rsync, and any number of other protocols. Those are excellent wheels and quite round; attempting to reinvent them is inadvisable in the extreme. –  Aaron Miller Jun 25 '13 at 21:44
    
@AaronMiller I don't think you read the whole thing, it was assigned to him as a project, it has to be through telnet, it's probably a beginners class on the history of file transfer protocols. –  user88311 Jun 25 '13 at 22:22
1  
@user88311 I did read the whole thing, and it doesn't contain enough information to be certain that the requirement includes using the telnet protocol specifically. If not, I'd recommend using anything else. If so, it's time to start writing code that can open a telnet socket to the target machine, use cat or equivalent to dump the text of the target file across the socket, and capture the result into a similarly named file on the originating host. –  Aaron Miller Jun 25 '13 at 22:31

2 Answers 2

If the client side supports logging, you could simply run a utility on the remote system to "uuencode" the file and output to stdout. You can then pull the file from the log and "uudecode" it locally. (PuTTY is a great telnet client and supports logging, I'm sure the built-in Windows Hyperterminal does as well.)

An answer on the Server Fault website suggests C-Kermit. I've never used it - it looks like it might work over an existing network connection like Telnet rather than only via serial.

Of course if you don't have an absolutely strict requirement to use the Telnet protocol to transfer the file, there's about thousand better ways to transfer files. Look into nc (netcat).

share|improve this answer

Depending on your telnet client - if you have one which supports x/y/zmodem emulation might be to use one of the old file transfer protocols (like Xmodem or zmodem). (look for an sz or lrzsz package on the server side). Then just sz (filename) on the server side.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.