Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-04-2008, 11:29 AM   #1
Registered: Jul 2007
Location: Carrollton, Texas
Distribution: cent os 7 , windows 7
Posts: 83

Rep: Reputation: 15

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?
Old 02-04-2008, 12:09 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Not a networking question. moved to Linux - Newbie. please also use more insightful thread titles in general.
Old 02-04-2008, 12:16 PM   #3
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
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.
Old 02-04-2008, 12:21 PM   #4
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora, PCLinuxOS
Posts: 666

Rep: Reputation: 91
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
$ scp localdir/
Old 02-04-2008, 05:04 PM   #5
Registered: Jul 2007
Location: Carrollton, Texas
Distribution: cent os 7 , windows 7
Posts: 83

Original Poster
Rep: Reputation: 15

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


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
Unable to telnet to Linux Host inspite of installing telnet-server RPM - Need Help sinamdar Linux - Software 7 04-11-2009 08:09 AM
Can't end telnet servcie in xinetd when close remote telnet cliend forcely zeroneworld Linux - Newbie 2 12-09-2007 09:47 PM
Can't end telnet servcie in xinetd when close remote telnet cliend forcefully. zeroneworld Linux - General 1 12-06-2007 08:17 AM
Running Telnet in a script, want to save Telnet output, howtodothis??? anil3 Linux - Software 2 03-08-2006 05:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:51 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration