LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-10-2005, 12:46 PM   #1
the_imax
Member
 
Registered: Apr 2004
Distribution: RHEL 4/ CentOS
Posts: 159

Rep: Reputation: 30
Upload file through Telnet


OK we have a server at the office having Solaris, sometimes we upload files to it through FTP , I want to ask that can I also upload the files to it by logging on through telnet? (as we also use telnet to run shells remotely)

Thanks
 
Old 12-10-2005, 04:13 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
You can't.


Cheers,
Tink
 
Old 12-11-2005, 02:52 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Actually, if you log your telnet session to a local file, by using the unix "script" command for example, you can then post-process it to extract remote files, simply with an editor for text files you have "catted", or with uudecode for binary files you have uuencoded.
 
Old 12-11-2005, 08:46 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
But to do it in a more safe and correct way, stop using telnet altogether since it's insecure and use ssh, which then you can use the likes of scp and sftp to copy files. Or install and use rsync, which is more powerful even. But stop using telnet, it's like driving the old Ford Pinto when you have a Ferrari parked next to it.
 
Old 12-11-2005, 09:23 AM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I fully agree with trickyid advice about using secure protocols.
By the way, I actually missed the point as my suggestion was about downloading, not uploading and anyway, if ftp is open, and for some reason you cannot go the ssh road, ftp is quite simpler than my hack.
 
Old 12-11-2005, 01:52 PM   #6
wrj
Member
 
Registered: Aug 2003
Location: Canada/US
Distribution: Ubuntu, Arch
Posts: 84

Rep: Reputation: 15
I also agree about not using telnet. scp is great for a few files but I would really recommend taking a look at rsync if you are moving a lot of files. It's fast, can
transfer just the differences between two sets of files and has many other cool features. The manpage has a lot of good info.
 
Old 12-11-2005, 03:12 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by jlliagre
Actually, if you log your telnet session to a local file, by using the unix "script" command for example, you can then post-process it to extract remote files, simply with an editor for text files you have "catted", or with uudecode for binary files you have uuencoded.
How does that give him an upload-feature though?

[edit]
Oic. Telnet into remote machine, fire up a telnet
session back to the originating box with script ...
Ugly, but would work I suppose.
[/edit]

Cheers,
Tink

Last edited by Tinkster; 12-11-2005 at 03:52 PM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't upload 5mb file. Need help. newlinuxnewbie Linux - General 2 11-05-2005 06:39 PM
File Upload through SSH kanagaraj Linux - Software 5 09-26-2003 01:59 PM
file upload apache 2.0 scriptjunkie Linux - Newbie 0 08-08-2003 03:26 PM
How do I upload a file and edit one? KyleLC23 Linux - Newbie 5 07-18-2003 10:39 AM
File upload via PHP saravanan1979 Programming 1 02-14-2002 04:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:49 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
Open Source Consulting | Domain Registration