I am transfering colleges and I have a lot of files from the first college that I would like to keep. The files are are on a Sun server which I can only access using telnet. Is there a way to download the files from the server using telnet?

link|improve this question

80% accept rate
Is rcp available? – Richard Hoskins Aug 16 '09 at 19:16
Are you sure the server doesn't have ssh running? If it does, there are scp and sftp commands. (If it does not, then it has one stupid sysadmin...) – grawity Aug 17 '09 at 10:47
feedback

4 Answers

up vote 4 down vote accepted

The easiest way is if you can run binaries on the machine, so set up a simple ftp server or something. If you can't do that, perhaps a combination of tar/gz to get one file, and then you can netcat it across? As a last restore, uuencode and cat could be used.

link|improve this answer
I thought that FTP had been disabled but I just tried it again and it worked. – Josh Curren Aug 16 '09 at 19:31
feedback

Using netcat ? If you have numerous files, I suggest to tarball them.

On the server side (using telnet port):

$netcat -l -p 23 < my_file.tar

On the client side:

$netcat machine_name 23 > my_file.tar

Netcat tool may exist named as "netcat" or "nc", check that out on your server machine.

link|improve this answer
feedback

It all depends on what you're allowed to do on the machine. One simple solution is to send all files by mail to yourself if you have access to a mail client.

link|improve this answer
I have been doing this but it is tedious and I then have to paste the text from the email into a new file – Josh Curren Aug 16 '09 at 19:30
feedback

Only way I see is to tar everything and convert it to base64. Once you are done with that, just "cat" it on remote side. If your telnet client (e.g. putty) has log, just log everything in file.

Once received, just unbase64 and untar it. That should give you your data.

But do notice that this procedure is pain-in-the-ass and it takes a while for any significant amount of data.

link|improve this answer
1  
The traditional UNIX utilities uuencode and uudecode are also acceptable and more likely to be available on any UNIX system. Base64 is preferable, though, since it's less overhead. – Chris W. Rea Aug 16 '09 at 23:19
feedback

Your Answer

 
or
required, but never shown

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