LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-29-2004, 03:36 PM   #1
paperdiesel
Member
 
Registered: Oct 2003
Location: southern cali
Distribution: fedora core 4
Posts: 79

Rep: Reputation: 15
telnet and ftp


Simple questions:

I'm running 2 linux boxes behind my router. One is running fedora core 1, the other is running fedora core 2. I'd like to be able to telnet and ftp between them. What files do I need to modify to allow for this? I thought that by editing /etc/hosts.allow to reflect the hostnames of the boxes (box1.mydomain.com, box2.mydomain.com), that I would be good to go. But I get a connection refused error when I try to connect. What files or settings do I need to mess with to make this work?
 
Old 06-29-2004, 04:38 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I would strongly reccomend not using telnet or ftp. You can get the same functionality from ssh and scp and your passwords are not send across the network in plain text. Take a look at:
http://wiki.linuxquestions.org/wiki/SSH
 
Old 06-30-2004, 08:50 AM   #3
RINO2004
LQ Newbie
 
Registered: Jun 2004
Location: Lithuania
Distribution: Slackware 9.x
Posts: 21

Rep: Reputation: 15
go to
cd /etc than edit the inetd.conf
uncoment services you want to run
Rerun inetd ("kill -HUP <pid of inetd>".)
telnet yourbox
 
Old 06-30-2004, 09:53 AM   #4
sharadgangwar
LQ Newbie
 
Registered: Jun 2004
Posts: 1

Rep: Reputation: 0
Same problem here

I am also facing same problem to configure telent services on linux 8. I did n;t find any configuration file in /etc/xinetd.d/telnet nor /etc/inetd.conf.

Please let me know how can I configure the telnet services?
 
Old 06-30-2004, 10:56 AM   #5
kevinatkins
Member
 
Registered: Jan 2004
Location: cheshire, uk
Distribution: Ubuntu Hoary
Posts: 605

Rep: Reputation: 33
Quote:
I would strongly reccomend not using telnet or ftp.
and i would second that - use ssh instead!
 
Old 06-30-2004, 02:25 PM   #6
paperdiesel
Member
 
Registered: Oct 2003
Location: southern cali
Distribution: fedora core 4
Posts: 79

Original Poster
Rep: Reputation: 15
Thanks for the help, everyone. I decided to use ssh. But I had to do some research to figure out that you can't do file transfers from within ssh. There's another program, called sftp, which does ftp over a secure socket.

Next time, instead of just saying "use ssh" to a telnet and ftp question, please indicate how to use ssh over ftp as well (sftp). Might save us noobs some time .
 
Old 06-30-2004, 02:34 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
In my first post I actually suggested scp for file transfers

Don't hesitate to reply and ask for more information. Personally I try not to make my first reply to long as I may end up wasting my time typing it and your time reading it. Most people will be happy to follow up if you have further questions.
 
Old 07-01-2004, 03:42 AM   #8
ujjwals
LQ Newbie
 
Registered: Jun 2004
Location: INDIA
Posts: 8

Rep: Reputation: 0
I faced the same problem to configure telent services on linux 7.
look for the configuration file in /etc/xinetd.d/

U'll get telnet & tftp file in this directory edit this file and make
>>"disable" option to "No" in both the files.

run service again >> service xinetd start
this all have to be done with root credentials ..

and one more thing ,i belive you know that telnet via root user is
not allowed.

Hope this will solve your problem ..
 
Old 07-01-2004, 03:48 AM   #9
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
SharadGangwar
Quote:
I am also facing same problem to configure telent services on linux 8. I did n;t find any configuration file in /etc/xinetd.d/telnet nor /etc/inetd.conf.
you would need to install telnet-server.
 
Old 07-01-2004, 03:49 AM   #10
ujjwals
LQ Newbie
 
Registered: Jun 2004
Location: INDIA
Posts: 8

Rep: Reputation: 0
Quote:
Originally posted by RINO2004
go to
cd /etc than edit the inetd.conf
uncoment services you want to run
Rerun inetd ("kill -HUP <pid of inetd>".)
telnet yourbox

I am Not able to get this service you are talking about
will you throw some light on this service inetd

or you were talking about xinetd ............
but still there is no conf file ..........
 
Old 07-01-2004, 03:53 AM   #11
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
ujjwal

what distro do you use? redhat/slackware/other?

redhat uses xinetd. slackware users inetd.
 
Old 07-01-2004, 04:51 AM   #12
ujjwals
LQ Newbie
 
Registered: Jun 2004
Location: INDIA
Posts: 8

Rep: Reputation: 0
yea I got it ....
I am using Redhat ...
 
Old 07-01-2004, 11:54 AM   #13
charon79m
Member
 
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297

Rep: Reputation: 30
Telnet and FTP are fine when talking within your own trusted network.

There's not need to add to overhead by encryptiong data heading from one comptuer to another across a LAN.

Mike
 
Old 07-01-2004, 11:53 PM   #14
ujjwals
LQ Newbie
 
Registered: Jun 2004
Location: INDIA
Posts: 8

Rep: Reputation: 0
how to work with rlogin...???

Simple Question ???

i am trying rlogin b/w two machines ..(for test purpose)

after writing .rhosts file on remote machine & rhosts file on my machine

do i need to run some service or need to provide some permissions

on the remote machine ....coz when i do >>rlogin host -l username

it ask's for a password .

i think this is not the normal behaviour ...

help me out
 
Old 07-02-2004, 01:02 AM   #15
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
The .rhosts file only has to be created on the machine you are logging into. The file has to exist in the home directory of the user that you are logging in as. You can create a /etc/hosts.equiv file instead if you want this to work for any user from the client system.

Make sure that the entry you place in your file(s) is resolvable by your server system. Do a host <your entry> to verify this.

If you don't administer these machines, don't be surprised if your .rhosts or hosts.equiv files disappear. Many admins will run a regular job that will search and delete such files, since they create a fairly large security hole.
 
  


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
ftp and telnet shelbyg75 Red Hat 2 09-29-2004 02:27 PM
FTP and Telnet carlg Linux - Networking 3 04-02-2004 12:00 PM
telnet and ftp? nabil_boussetta Linux - Networking 4 10-27-2003 09:05 AM
telnet and ftp? nabil_boussetta Red Hat 4 10-27-2003 08:33 AM
telnet and FTP clewis Linux - Newbie 6 06-25-2001 03:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:24 PM.

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