Solved

Cannot connect via telnet or ftp to Linux 9 box

Posted on 2004-08-11
4
2,307 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
  • 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now