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?
|
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:
|
I know about SSH but i am just working with telnet right now for educational purposes.
|
No I don't think you can use telnet, just r commands.
|
Shouldn't you be able to use zmodem, xmodem, etc over telnet? I've never tried it mind you...
|
>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. |
Copy files from Telnet.
Quote:
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 .... |
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 10:15 PM. |