Linux - GeneralThis 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
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.
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.
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)
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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.
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.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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.
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.
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]
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.