LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-08-2001, 08:39 PM   #1
bobthebat
Member
 
Registered: Apr 2001
Location: Portland, OR
Distribution: Slackware 8
Posts: 82

Rep: Reputation: 15
Angry


I would like to be able to telnet from my PC running Windows 98 to my Mac running SuSE 7.0 PPC. I have configured the Mac to start inetd and done everything that it instructed me to do in the manual to setup a telnet server. However, when I try to connect to it from my Windows computer, it it gives me an error, saying the connection was lost/refused/reset by peer depending on what client I'm using. I have also tried using SSH, with similar results. What am I doing wrong?
 
Old 04-09-2001, 03:39 AM   #2
raz
Member
 
Registered: Apr 2001
Location: London
Posts: 408

Rep: Reputation: 31
Bobthebat,

I think Suse 7.0 is using the Kernel 2.2.17 so check some of these things.

Make sure you have a "/etc/services" file
in that file make sure you have the line "telnet 23/tcp"

Now check you have the inetd set correctly for telnet to load.

make sure you have the /etc/xinetd.conf file.
cat /etc/xinetd.conf should look something like this.

# Some defaults, and include

defaults
{
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST RECORD
}

includedir /etc/xinetd.d

# eof

Now go into /etc/xinetd.d/
in this directory do a "ls -l"
Should see a file called "telnet"

file looks like this and is loaded when the xinetd services are started.

[root@foo.bar old]# cat telnet
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}


Recommend you don't use telnet but a SSH2 service to help secure your network.

Don't use a GUI telnet client from windows as a test.
Use the windows 98 systems dos telnet client, with the command "c:\telnet ipaddress"

/Raz

 
Old 04-09-2001, 05:11 PM   #3
bobthebat
Member
 
Registered: Apr 2001
Location: Portland, OR
Distribution: Slackware 8
Posts: 82

Original Poster
Rep: Reputation: 15
Wink stupid me

Thank you very much for all the good information, however, I'm ashamed to say that it was nothing that complex at all. I had recently re-installed (showing a friend the install process), and forgot to add a line allowing telnet from the Windows computer to /etc/hosts.allow. D'oh!
 
Old 04-23-2001, 01:53 AM   #4
parvez
LQ Newbie
 
Registered: Apr 2001
Posts: 1

Rep: Reputation: 0
Angry What did you add in the /etc/hosts.allow

I'm having the same problem with you.But I couldn't manage to solve it.I've two machines one is win2k prof and other one is Rh6.2.While I'm using the telnet from windows to connect to my linux ,I got connection refused.
Do I need to do something in linux?Do I need to run any server in my linux machine?
My w2k's Ip is 192.168.0.1 and my linux's ip is 192.168.0.2.
I'm a very new to linux .So,please give me some advice.
Thank you.




Quote:
Originally posted by bobthebat
Thank you very much for all the good information, however, I'm ashamed to say that it was nothing that complex at all. I had recently re-installed (showing a friend the install process), and forgot to add a line allowing telnet from the Windows computer to /etc/hosts.allow. D'oh!
 
  


Reply


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
Getting FTP, TELNET , or SSH to work jst1 SUSE / openSUSE 1 03-08-2005 08:54 PM
telnet login control with sockets...how the heck does this work? ooagentbender Programming 2 08-19-2004 09:14 PM
making telnet work explorer Fedora 2 05-02-2004 02:56 PM
FTP nor Telnet work Fruitbat Linux - Networking 1 08-12-2001 07:23 PM
getting telnet to work Bashkir Linux - Newbie 2 05-16-2001 07:36 AM

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

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