LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-25-2006, 11:20 PM   #1
codepoet
LQ Newbie
 
Registered: May 2005
Posts: 14

Rep: Reputation: 0
Telnet


I want to copy a file from a local machine and put it on another using telnet. Can this be done? If it can what is the command?
 
Old 10-25-2006, 11:35 PM   #2
augurseer
Member
 
Registered: Feb 2006
Location: Canada
Distribution: OpenSuSe 10.2 (Home and Laptop) CentOS 5.0 (Server)
Posts: 171

Rep: Reputation: 30
i wouldnt use telnet if i were you. use SSH, ssh is secure fast and has a built in FTP progrtam called SCP.


do > SCP nameoffile.whatever user@whater.com:. and it will copy the file from where you call the command to the home dir of that user. it still uses the same concepts as FTP but uses tunnels and the SSH hashing. if you use FTP anyone on your subnet or within your network can packet sniff you, find your password, username and file contents. FTP telnet and rtalk are out. SSH replaced all of them.

hope this helps

ciao
 
Old 10-27-2006, 01:25 AM   #3
codepoet
LQ Newbie
 
Registered: May 2005
Posts: 14

Original Poster
Rep: Reputation: 0
telnet

Thank you for the info. The problem I have is that the box I want to update the files on can only be reached by telnet,I can't add ssh server software on it.
 
Old 10-27-2006, 02:00 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
You COULD use an ugly kludge if script was installed on the remote machine.
Telnet there, fire up script, telnet back to your box and cat the file.

Exit out of the second telnet, stop script, and edit the transcript of
what you did on the remote machine; save the content that you want as
the new file to a temporary name, make sure it's what you want (back up
the old file for good measure) and overwrite the old with the new.

Ugly as, error prone, but possible.


Cheers,
Tink
 
Old 10-27-2006, 02:04 AM   #5
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
First off, scp is a program for copying files over an ssh encrypted connection. sftp is an FTP program for use over ssh.

telnet also logs in remotely (without the encryption though), but allows you to connect to any port.

If telnet is allowed, but ssh is not, you might want to try the "rcp" (remote copy) tool. This is like the predecessor to scp and does remote copying without the encrypted channel that ssh provides.

Besides rcp and ssh (scp or sftp), there are some other alternatives:
1. normal ftp
2. mounting via NFS or Samba (either mounting your disk(s) on the remote machine or mounting the remote machine's disk(s) on your local machine)
 
Old 10-30-2006, 11:22 PM   #6
codepoet
LQ Newbie
 
Registered: May 2005
Posts: 14

Original Poster
Rep: Reputation: 0
Angry Telnet command

Quote:
Originally Posted by timmeke
First off, scp is a program for copying files over an ssh encrypted connection. sftp is an FTP program for use over ssh.

telnet also logs in remotely (without the encryption though), but allows you to connect to any port.

If telnet is allowed, but ssh is not, you might want to try the "rcp" (remote copy) tool. This is like the predecessor to scp and does remote copying without the encrypted channel that ssh provides.

Besides rcp and ssh (scp or sftp), there are some other alternatives:
1. normal ftp
2. mounting via NFS or Samba (either mounting your disk(s) on the remote machine or mounting the remote machine's disk(s) on your local machine)
My problem I'm having is that the remote linux box has a very small hdd (64mb flash disk) so the only access I have is using telnet because I'm not able to install any ftp programs or samba etc. What I would like to know if it is possible to replace a few files on there using telnet from a windows box?
I'm sorry if I confused you even more :-)
Thanks
 
Old 10-31-2006, 12:45 AM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Given that size limitation I take it script and a telnet client won't
be installed, either.... if you telnet there you could also try the following
echo "<copy and paste from windows clipboard>" > file


Cheers,
Tink
 
  


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
Difference between Telnet and Raw Telnet?? bh5687 Linux - Newbie 1 03-30-2006 10:25 AM
Running Telnet in a script, want to save Telnet output, howtodothis??? anil3 Linux - Software 2 03-08-2006 04:01 PM
How do I setup telnet on Fedorac1 so I can telnet to it from winxp? mman49 Fedora 6 05-02-2004 12:40 PM
can not telnet localhost 25 but telnet dowell.exper.dynserv.com 25 exper Linux - Software 0 02-25-2004 05:13 AM
telnet local but no-telnet via internet blacksheep Linux - Networking 7 11-26-2001 02:33 PM


All times are GMT -5. The time now is 08:07 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration