Linux - NewbieThis 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
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.
Distribution: OpenSuSe 10.2 (Home and Laptop) CentOS 5.0 (Server)
Posts: 171
Rep:
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.
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.
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.
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)
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.