I am trying to telnet from host 10.0.1.91 (centos) to host 10.0.11.162 (ubuntu). When I try to connect to the Ubuntu host, I get:
telnet 10.0.11.162 4949
Trying 10.0.11.162...
Connected to a.b.c (10.0.11.162).
Escape character is '^]'.
Connection closed by foreign host.
on host 10.0.11.162 (Ubuntu)
ps -ef | grep telnet
root 6682 4564 0 00:33 pts/0 00:00:00 grep --color=auto telnet
but telnetd
is already at the newest version.
apt-get install telnetd
Reading package lists... Done
Building dependency tree
Reading state information... Done
telnetd is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 348 not upgraded.
How can I telnet to the Ubuntu machine?
Remove the
telnetd
package it is not needed. Execute the commandapt-get purge telnetd
to fully remove the package.You only need the
teluet
client package to connect to other servers.It appears you are testing a Munin node. Your allow rules do not allow access from the host you are connecting from. Edit your
/etc/munin/munin-node.conf
file to allow access.It looks to me that there is a firewall involved somewhere along the way. Maybe even the unbutu client machine has it enabled probably for telnet.
Another thought is that the /etc/xinetd.d/telnet entry is disabling telnet on the ubuntu machine. You could check this out, and then kill -1 the xinetd process after making the change.
BUT....Why not use ssh to get to the other machine? It is FAR more secure than telnet and does nearly the same thing. All you'd have to enter is:
Your telnet is working fine. What you are trying to do is to test munin connectivity. The steps are documented here:
http://munin-monitoring.org/wiki/Debugging_Munin_plugins
But to make it short, after you get to this:
you need to enter a command that will query the plugin, such as df:
Which should return the following:
Please review the above URL.
When I'm testing networking connectivity, I always try to connect from localhost to see if there aren't firewalls/routers/etc involved in causing problems.
From the ubuntu machine, are you able to do:
sudo apt-get install rlinetd
did it. I was able to telnet after that.