LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-03-2009, 08:47 AM   #1
RedskinsFan2009
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Rep: Reputation: 0
Network issues preventing Telnet, FTP, Exceed connections.


First, let me get out of the way that I am a total Linux newb and this is my first real experience installing and configuring a server. Now onto my problem.

I just installed RHEL 5.0 and I am having issues connecting through ftp clients, Exceed xterm, and telnet from a remote client. As it stands the only type of remote connectivity I have is through an SSH Putty connection.

Problems:

Telnet - From Windows, when I try to Telnet to the linux box I immediately receive a connect failed message

C:\>telnet xxx.xxx.xxx.xxx 23
Connecting to xxx.xxx.xxx.xxx 23....Could not open connection to the host, on port 21: Connect failed

FTP - I've tried using a GUI (FileZilla) and a command window to access an FTP session but it almost immediately fails

ftp> open xxx.xxx.xxx.xxx
> ftp: connect :Uknown error number.

When using FileZilla it immediately throws me a "Could not connect to server" error when attempting to connect through port 21.

Exceed - Pretty much any connection method attempted to establish an x-window session fails upon failure to reach the host.

The client machine I am using is behind the same firewall as the server. I installed RHEL through the GUI installer, and I initially configured the firewall to pass through Telnet, FTP, etc. Trying to troubleshoot, I disabled the firewall and stopped iptables but this did not help. Can someone please point me in the right direction?
 
Old 12-03-2009, 09:05 AM   #2
RedskinsFan2009
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Original Poster
Rep: Reputation: 0
I'd also like to mention that I can make an sftp connection from another RHEL 5.0 box to the problematic machine without a problem.
 
Old 12-03-2009, 10:33 AM   #3
chuckbuhler
Member
 
Registered: Oct 2005
Distribution: SuSe
Posts: 95

Rep: Reputation: 17
Can you nmap the server and be sure that it's listening on those ports? If it isn't you may need to start or restart the services.

nmap <server ip address>
nmap 192.168.1.25

this should show all ports that the server is listening on.

to restart a service:
/etc/init.d/<service> restart
/etc/init.d/telnetd restart

Last edited by chuckbuhler; 12-03-2009 at 10:37 AM. Reason: over anxious on the submit button!
 
Old 12-03-2009, 06:33 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,415

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
1. check the firewall on the server with
iptables -nvL

2. telnet server is normally disabled by default due to security issues ie plain text transmission.
You may need to install it

yum install telnetd

then go into /etc/xinetd.d and edit the telnet file, set 'disabled=no', restart xinetd service
You'll need to check /etc/hosts.allow,deny files as well.

Personally I wouldn't use a telnet server without a very good reason.

I'm assuming
Quote:
C:\>telnet xxx.xxx.xxx.xxx 23
Connecting to xxx.xxx.xxx.xxx 23....Could not open connection to the host, on port 21: Connect failed
is a typo; if you telnet to port 23, you won't get an err msg about port 21
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Switch is preventing connections to the LAN xri Linux - Networking 4 02-09-2009 11:34 PM
ftp and ssh connections hang - network config? TreeHugger Linux - Networking 7 11-08-2004 11:55 AM
Whare are logs for ftp, telnet and other netwrk connections ? stephnane AIX 5 05-17-2004 04:38 AM
ftp/telnet not accepting connections mstembri Linux - Newbie 6 10-05-2003 03:11 PM
Unable to ftp/telnet from outside to my home network aruna13 Linux - Newbie 3 04-18-2002 06:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration