How to copy files using telnet from the remote pc to my pc

0

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?

Lay-z

Posted 2013-06-25T20:08:38.753

Reputation: 29

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 – 2013-06-25T20:17:49.960

Telnet isnt really the best way to transfer files. If you want to transfer files across command line, look into ssh and scp. – agz – 2013-06-25T21:19:03.317

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 – 2013-06-25T21:44:32.303

@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 – 2013-06-25T22:22:49.940

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 – 2013-06-25T22:31:37.940

can you use netcat instead? google for "netcat tarpipe" to find out how – AnonymousLurker – 2013-06-25T23:39:14.793

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).

LawrenceC

Posted 2013-06-25T20:08:38.753

Reputation: 63 487

1

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.

davidgo

Posted 2013-06-25T20:08:38.753

Reputation: 49 152