LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-01-2003, 09:11 PM   #1
rkemp
Member
 
Registered: Nov 2003
Distribution: redhat 8.0
Posts: 35

Rep: Reputation: 15
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?
 
Old 12-01-2003, 09:54 PM   #2
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
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 :.
 
Old 12-01-2003, 10:00 PM   #3
rkemp
Member
 
Registered: Nov 2003
Distribution: redhat 8.0
Posts: 35

Original Poster
Rep: Reputation: 15
I know about SSH but i am just working with telnet right now for educational purposes.
 
Old 12-01-2003, 10:15 PM   #4
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
No I don't think you can use telnet, just r commands.
 
Old 12-01-2003, 10:37 PM   #5
chort
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: Reputation: 76
Shouldn't you be able to use zmodem, xmodem, etc over telnet? I've never tried it mind you...
 
Old 12-01-2003, 11:45 PM   #6
zaphodiv
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
>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.
 
Old 03-11-2009, 05:24 AM   #7
aruledison
LQ Newbie
 
Registered: Feb 2007
Posts: 5

Rep: Reputation: 0
Copy files from Telnet.

Quote:
Originally Posted by rkemp View Post
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 ....
 
Old 03-11-2009, 06:01 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to copy files from another machine to the local machine using telnet,..how? shrike_912 Programming 6 03-14-2006 05:45 PM
Need to copy files from a very old SCSI drive Dapper Dan Linux - Hardware 5 07-10-2004 07:57 AM
Opening remote files (during ssh session) with applications on local computer? The_Fed Linux - Newbie 3 05-10-2004 05:20 PM
client can't copy files to local machine through vsftpd server on RH9 tree_buddy Linux - Networking 7 09-15-2003 11:54 AM
Cannot Copy Files From Network FAT32/NTFS Drive to My Local Linux Drive michaelh Linux - Networking 3 10-29-2002 11:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration