LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 15
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?
 
Old 02-04-2008, 11:09 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Not a networking question. moved to Linux - Newbie. please also use more insightful thread titles in general.
 
Old 02-04-2008, 11:16 AM   #3
b0uncer
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, 11:21 AM   #4
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 757

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

Original Poster
Rep: Reputation: 15
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
 
  


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 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 07:09 AM
Can't end telnet servcie in xinetd when close remote telnet cliend forcely zeroneworld Linux - Newbie 2 12-09-2007 08:47 PM
Can't end telnet servcie in xinetd when close remote telnet cliend forcefully. zeroneworld Linux - General 1 12-06-2007 07:17 AM
Running Telnet in a script, want to save Telnet output, howtodothis??? anil3 Linux - Software 2 03-08-2006 04:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:42 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