LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   copy files from telnet session to local drive (http://www.linuxquestions.org/questions/linux-networking-3/copy-files-from-telnet-session-to-local-drive-121797/)

rkemp 12-01-2003 08:11 PM

copy files from telnet session to local drive
 
Is it possible to copy files from a telnet from a linux box onto the local hard drive of the computer that you are using to telnet?

jcookeman 12-01-2003 08:54 PM

I would not use telnet! Use ssh if you can. You may be able to use the rcp command if that traffic is allowed and the r commands are enabled, but seriously, use ssh tools if you can:

Code:

scp someuser@somehost.somedomain.com:/path/to/file :.

rkemp 12-01-2003 09:00 PM

I know about SSH but i am just working with telnet right now for educational purposes.

jcookeman 12-01-2003 09:15 PM

No I don't think you can use telnet, just r commands.

chort 12-01-2003 09:37 PM

Shouldn't you be able to use zmodem, xmodem, etc over telnet? I've never tried it mind you...

zaphodiv 12-01-2003 10:45 PM

>Shouldn't you be able to use zmodem, xmodem, etc over telnet?

Yes, I did that long ago with kermit over a telnet to a VAX.
You need a telnet client with support and a server program to run on the shell.

aruledison 03-11-2009 04:24 AM

Copy files from Telnet.
 
Quote:

Originally Posted by rkemp (Post 629711)
Is it possible to copy files from a telnet from a linux box onto the local hard drive of the computer that you are using to telnet?

Hi,

You may try these commands to copy files from telnet to local pc:

# smbclient \\ipaddress\sharename -U sharename
(Now,It will prompt for username and passwd)
# get filename
(Not that particular file will be copied to your local drive)


Try the above ....

jschiwal 03-11-2009 05:01 AM

You could pipe the file using tar & netcat. Using telnet, you would tar the file, piping the output to netcat. On the receiving end, use netcat with the -l (listen) option and pipe the output to tar to extract the file.

---
Using ssh, with PKA, you wouldn't have authentication getting in the way and could do it directly:
tar -C directory/ -cf - file(s) | ssh user@host tar -C dest_dir/ -xvf -

You could transport a directory hierarchy this way securely to another computer over the internet using ssh & tar.

You might try it with telnet instead of ssh. I don't have a telnet server on my network to test it.


All times are GMT -5. The time now is 05:35 AM.