Unable to telnet to Linux Host inspite of installing telnet-server RPM - Need Help
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
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.
Unable to telnet to Linux Host inspite of installing telnet-server RPM - Need Help
Hi Experts,
Have to enable telnet on the Linux host. Installed telnet-server-0.17-37 RPM on the host.
The /etc/xinetd.d/telnet file has the following :
# 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
disable = no
}
But when I try to connect to this host, I get "Connection closed by foreign host" message.
Can you please guide me if I am missing some information or some configuration.
# uname -a
Linux india-wipro-tb1.cisco.com 2.6.9-1.667smp #1 SMP Tue Nov 2 14:59:52 EST 2004 i686 i686 i386 GNU/Linux
[root@india-wipro-tb1 bodcmanta]#
How can I setup to start telnet automatically ?
As you suggest, I tried telnet to local host, give the same error :
[root@india-wipro-tb1 bodcmanta]# telnet localhost
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Connection closed by foreign host.
Not sure what the problem is !!
The /var/log/messages shows the following :
[root@india-wipro-tb1 bodcmanta]# tail -f /var/log/messages
Jan 15 21:03:34 tb1 xinetd[2447]: Swapping defaults
Jan 15 21:03:34 tb1 xinetd[2447]: readjusting service ftp
Jan 15 21:03:34 tb1 xinetd[2447]: service telnet deactivated
Jan 15 21:03:34 tb1 xinetd[2447]: Errors deactivating service telnet
Jan 15 21:03:34 tb1 xinetd[2447]: readjusting service tftp
Jan 15 21:03:34 tb1 xinetd[2447]: readjusting service telnet
Jan 15 21:03:34 tb1 xinetd[2447]: Reconfigured: new=0 old=3 dropped=1 (services)
Jan 15 21:08:09 tb1 sshd(pam_unix)[3907]: session opened for user root by root(uid=0)
Jan 15 21:15:01 tb1 crond(pam_unix)[3942]: session opened for user root by (uid=0)
Jan 15 21:15:01 tb1 crond(pam_unix)[3942]: session closed for user root
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
A better question to ask would be: Why are you even trying to use telnet in the first place? It's totally insecure and a prefect alternative (ssh) exists and is enabled by default in most Linux distributions.
We are testing TCP-MIB and have just one switch. So we need to establish a TCP connection btween switch and Linux host for the MIB objects to be populated.
Thats the reason I want to enable telnet on the Linux host momentarily. Later will disable the same. We have SSH running.
Please make note that telnet login to root accounts is disabled by default for security reasons. Instead, check the connection by login into a normal user account.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.