Solved

Cannot connect via telnet or ftp to Linux 9 box

Posted on 2004-08-11
4
2,365 Views
Last Modified: 2012-05-05
I setup a Linux 9 server and and am trying to connect to it via telnet and ftp. For some reason it's not working.

When I try to connect via telnet I get the following error:

could not open connection to the host, on port 23: connect failed.

When I try to connect via ftp I get: unknown error number.

I'm a novice Linux person so please go easy on me :-) simple answers are encouraged.

Thanks,

John
0
Comment
Question by:jhieb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 125 total points
ID: 11779038
I'm guessing that "linux 9" is probably RedHat 9. If so the failure could be from the firewall installed by default during the OS installation. The default firewall rule set will prevent any connections to outside to the box. You can, for the purposes of testing, disable the firewall with '/sbin/service iptables stop'

Another possibility is that you haven't installed and/or enabled a telnet or FTP server. Neither will be installed unless you chose a Server or Everything configuration, and even then they won't be enabled by default. If /sbin/chkconfig --list' doesn't show a telnet or FTP service the packages (telnet-server or vsftpd) aren't installed and you'll need to install them from the distribution CD's. If the services are listed you can enable each with chkconfig.
0
 
LVL 1

Author Comment

by:jhieb
ID: 11779154
Thanks. It doens't show FTP as a service so I'll check the installation. Telnet was installed so I started it with chkconfig. Works great. Does this mean it will automcatically start now when I reboot or do I need to change something else?
0
 
LVL 40

Expert Comment

by:jlevie
ID: 11779657
When enabled via chkconfig the service will be available for subsequent boots
0
 

Expert Comment

by:theneeraj
ID: 11830295
disable the firewall service in your redhat .

#chkconfig iptables off
 or use
#ntsysv
and scroll down to uncheck the iptables and reboot.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question