Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
![Reply](https://www.linuxquestions.org/questions/images/buttons/reply.gif) |
08-12-2005, 05:37 PM
|
#1
|
Member
Registered: Feb 2003
Distribution: Kubuntu
Posts: 142
Rep:
|
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
|
|
|
08-12-2005, 05:40 PM
|
#2
|
Moderator
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
|
Do you have a firewall installed on either computer? Have you made changes to iptables since you first installed?
|
|
|
08-12-2005, 06:02 PM
|
#3
|
Member
Registered: Feb 2003
Distribution: Kubuntu
Posts: 142
Original Poster
Rep:
|
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
|
|
|
08-12-2005, 09:42 PM
|
#4
|
Member
Registered: Jun 2005
Location: Pennsylvania
Distribution: Kubuntu
Posts: 197
Rep:
|
Check your firewall settings on the client or server with:
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?
|
|
|
08-17-2005, 10:12 AM
|
#5
|
Member
Registered: Feb 2003
Distribution: Kubuntu
Posts: 142
Original Poster
Rep:
|
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
|
|
|
08-17-2005, 07:35 PM
|
#6
|
Member
Registered: Jun 2005
Location: Pennsylvania
Distribution: Kubuntu
Posts: 197
Rep:
|
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.
|
|
|
08-19-2005, 05:12 PM
|
#7
|
Member
Registered: Feb 2003
Distribution: Kubuntu
Posts: 142
Original Poster
Rep:
|
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.
|
|
|
09-18-2005, 09:42 AM
|
#8
|
Member
Registered: Jun 2005
Location: Sacramento, CA
Distribution: Many, Old and New
Posts: 124
Rep:
|
Is telnet enabled in xinet.d/telnet?
there is a line "disabled = ????" mine says "no"
|
|
|
All times are GMT -5. The time now is 05:19 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|