Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-01-2003, 09:11 PM
|
#1
|
Member
Registered: Nov 2003
Distribution: redhat 8.0
Posts: 35
Rep:
|
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?
|
|
|
12-01-2003, 09:54 PM
|
#2
|
Member
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417
Rep:
|
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:
|
|
|
12-01-2003, 10:00 PM
|
#3
|
Member
Registered: Nov 2003
Distribution: redhat 8.0
Posts: 35
Original Poster
Rep:
|
I know about SSH but i am just working with telnet right now for educational purposes.
|
|
|
12-01-2003, 10:15 PM
|
#4
|
Member
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417
Rep:
|
No I don't think you can use telnet, just r commands.
|
|
|
12-01-2003, 10:37 PM
|
#5
|
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
|
Shouldn't you be able to use zmodem, xmodem, etc over telnet? I've never tried it mind you...
|
|
|
12-01-2003, 11:45 PM
|
#6
|
Member
Registered: Oct 2003
Distribution: Slackware
Posts: 388
Rep:
|
>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.
|
|
|
03-11-2009, 05:24 AM
|
#7
|
LQ Newbie
Registered: Feb 2007
Posts: 5
Rep:
|
Copy files from Telnet.
Quote:
Originally Posted by rkemp
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 ....
|
|
|
03-11-2009, 06:01 AM
|
#8
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
Last edited by jschiwal; 03-11-2009 at 06:05 AM.
|
|
|
All times are GMT -5. The time now is 05:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|