LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Telnet (https://www.linuxquestions.org/questions/linux-newbie-8/telnet-618592/)

vande012 02-04-2008 10:29 AM

Telnet
 
I have an account on a unix box and i can telnet to it everything goes good. I telnet via cygwin, and was wondering if there is a way to cp a file from my windows box and get it into home dir on unix box. I asked this here because many of linux/unix commands work the same. Its actually a script that i want to get on the Unix box unless there is a way to run a script that is located on my windows box remotely on my unix box?

also do i use sh command to run scripts?

acid_kewpie 02-04-2008 11:09 AM

Not a networking question. moved to Linux - Newbie. please also use more insightful thread titles in general.

b0uncer 02-04-2008 11:16 AM

Well telnet itself isn't a for file transferring, it's a remote shell. An unsecure one. If the Unix supports any other remote shell than telnet (read: ssh), use that. Telnet sends all information unencrypted (in plaintext), including your passwords, so if anybody happens to be connected to the same network you're in, your passwords and other sensitive information are more or less public property without much trouble. Using ssh you encrypt the transfer data, so it's more secure. Not bullet-proof, but a lot better than telnet.

To transfer files you would use ftp or secure ftp, sftp. Basically sftp works the same as ftp, but the connection is ssh secured; you could compare that to using ssh instead of telnet. And why use telnet/ssh/ftp/sftp from cygwin, when you could just get PuTTY?

Find out if the Unix server supports ssh, and use that instead of telnet.
Find out if the Unix server supports sftp (SSH secured ftp), and use that. If not, try ftp instead.

Your Windows should be able to connect to ftp via browser if you don't have any particular program for that, but you could just as well use ftp on cygwin if it offers that, or get a Windows ftp client. And you could get PuTTY to deal your telnet/ssh remote connections. Rather ssh than telnet, really.

EDIT: to try if the server supports ssh or sftp or ftp, just get a client and try to connect.

KenJackson 02-04-2008 11:21 AM

You can run the rz command on the remote machine to receive it and then run sz on the local machine to send it with the zmodem protocol. Those are part of the lrzsz package on Linux, and I think it is just rzsz on Cygwin.

But using sz and rz directly can be very awkward, which is why I use zssh which has a built-in way to call them. The zssh package includes a ztelnet client that does the same for telnet.

There are probably other telnet clients that support zmodem transfers, if you google for them.

BTW, why are you using telnet? Most people are switching to ssh because it is more secure in this era of malware on windows PCs. If you have ssh setup to work, you can use the scp command directly from the command line to copy stuff something like this:

$ scp localfile server.com:/home/user/somedir/
$ scp server.com:somedir/otherfile localdir/

vande012 02-04-2008 04:04 PM

Well
 
Well we are not suppose to be using Telnet at work. However they are and im not asking questions lol. For their Production server they are using ssh but im suppose to be testing some scripts through are telnet accessible servers. And do i need some third party software to do this rz and whatnot


All times are GMT -5. The time now is 11:50 PM.