LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-12-2005, 05:37 PM   #1
hpladd
Member
 
Registered: Feb 2003
Distribution: Kubuntu
Posts: 142

Rep: Reputation: 15
Argh! telnet


Having a miserable time with either RH 9 and telnet or ssh

Security is not an issue, so i don't care which is used. I'd just like to one or the other working and I'm having very little luck finding documentation to help?

Code:
[root@localhost root 04:19 PM]# xcalc -display 192.168.2.103:0.0
Warning: Cannot convert string "calculator" to type Pixmap
Warning: Cannot convert string "gray3?foreground=gray70&background=gray85" to type Pixmap
Works like a charm. A calculator opens of the sending computer of 192.168.2.102

Code:
[root@localhost root 05:22 PM]# telnet 192.168.2.103
Trying 192.168.2.103...
telnet: connect to address 192.168.2.103: Connection refused
[root@localhost root 05:22 PM]#
The connection is alway refused.

Yes, there is a router involved. But truly I think the problem is with RH and some default security settings.

Any suggestion -- suggested reading?

Thanks
 
Old 08-12-2005, 05:40 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Do you have a firewall installed on either computer? Have you made changes to iptables since you first installed?
 
Old 08-12-2005, 06:02 PM   #3
hpladd
Member
 
Registered: Feb 2003
Distribution: Kubuntu
Posts: 142

Original Poster
Rep: Reputation: 15
I don't believe that I do have a firewall on either computer.

I believe that the router does have a firewall. Is that a problem if I'm telneting on the behind the firewall.

I did not knowingly reset the iptables

thanks
 
Old 08-12-2005, 09:42 PM   #4
carl.waldbieser
Member
 
Registered: Jun 2005
Location: Pennsylvania
Distribution: Kubuntu
Posts: 197

Rep: Reputation: 32
Check your firewall settings on the client or server with:
Code:
# iptables -nL
The results may be a bit mystifying if you don't know what they mean, but basically, you would want to see if the ports in question are being dropped/rejected somewhere.

Also, is telnetd or sshd running on the server?
 
Old 08-17-2005, 10:12 AM   #5
hpladd
Member
 
Registered: Feb 2003
Distribution: Kubuntu
Posts: 142

Original Poster
Rep: Reputation: 15
Sorry I didn't get to this sooner....

You're right! I have no idea what I'm looking at after typing "iptables -nL"
Code:
[root@localhost root 09:18 AM]# iptables -nL

Chain INPUT (policy ACCEPT)
target     prot opt source               destination
 
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
 
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
 
Chain L (0 references)
target     prot opt source               destination
I'm not certain what is meant by "running on the server."

Below is a portion of the return for ps -A; it shows that ssh is running. Booting the machine or startx must call the ssh daemon as all I have done since I last booted the machine was to run startx.
Code:
 1990 tty1     00:00:01 gnome-session
 2005 ?        00:00:00 ssh-agent
 2016 tty1     00:00:01 gconfd-2
Code:
1724 ?        00:00:00 apmd
 1761 ?        00:00:00 sshd
 1775 ?        00:00:00 xinetd
Not surprisingly, after typing "telnet" on the command line, a process for telnet shows up as a running process...
Code:
 2656 pts/0    00:00:00 bash
 2682 pts/0    00:00:00 telnet
 2685 pts/3    00:00:00 bash
 2712 pts/3    00:00:00 ps
 2713 pts/3    00:00:00 more
Thanks for your help, and again sorry it took me so long to respond
 
Old 08-17-2005, 07:35 PM   #6
carl.waldbieser
Member
 
Registered: Jun 2005
Location: Pennsylvania
Distribution: Kubuntu
Posts: 197

Rep: Reputation: 32
Your firewall is not blocking any ports, so that's not the problem, and it looks like you have sshd running, so that's not the problem. Although, you didn't specify if the firewall settings you showed were for the client or the server machine. Outgoing ports from the client and incoming ports from the server both need to be open. X seems to be working, so connectivity doesn't seem to be an issue. The only remaining thing I can think of is that sshd is not configured correctly.

When I say, "running on the server" I mean the following. In both of the communications you attempted (telnet and ssh), there are two pieces-- a client program (telnet, ssh) and a server program (telnetd, sshd). The client program runs on your local computer while the server program runs on the remote computer.

You didn't specify in your output what computer you ran "ps -A" on, but I am assuming it was the server (remote) computer. You didn't mention if the server was running telnetd, which would be required to successfully telnet to that computer.
 
Old 08-19-2005, 05:12 PM   #7
hpladd
Member
 
Registered: Feb 2003
Distribution: Kubuntu
Posts: 142

Original Poster
Rep: Reputation: 15
Once again, sorry for not answering sooner.

The topic requires more instruction than I can reasonably request from a bulletin board. So I think I'll do some research, narrow the scope of my questions and return to the boards later.

Thank you for your advice thus far.
 
Old 09-18-2005, 09:42 AM   #8
pentalive
Member
 
Registered: Jun 2005
Location: Sacramento, CA
Distribution: Many, Old and New
Posts: 124

Rep: Reputation: 15
Is telnet enabled in xinet.d/telnet?

there is a line "disabled = ????" mine says "no"
 
  


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
Can't See. . . Argh Hive DamnSmallLinux 2 04-21-2005 04:38 PM
Argh Decembermouse Yoper 4 11-17-2004 01:48 PM
can't su...argh! rahmed Linux - General 6 08-18-2004 11:36 PM
can not telnet localhost 25 but telnet dowell.exper.dynserv.com 25 exper Linux - Software 0 02-25-2004 06:13 AM
argh espositopm Linux - General 1 02-28-2003 03:01 PM

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

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