FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old July 28th, 2003, 06:04 AM
gadtan gadtan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 8 gadtan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
telnet/ftp Service problem

HI,

I have setup a Linux 8.0 server with telnet & ftp service. But I can't ftp or telnet into the server. I have checked with the netstat and the service is listening.

When I telnet or ftp it shows the error:
Connecting To 192.168.1.93...Could not open a connection to host on port 23 : Connect failed

Within the server I can telnet or ftp itself, and from outside I can ping the server. I have gone through and search for any wrong setting, but I still do not know what is happening.

I load the ver 8.0 in text mode and I am still new in this OS.

Can someone help? Appreciate that.

Gad

Reply With Quote
  #2  
Old July 28th, 2003, 08:57 AM
LANLord's Avatar
LANLord LANLord is offline
IT Dept Scapegoat
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 169 LANLord User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 54 m 43 sec
Reputation Power: 6
Have you tried ssh instead of telnet? It's pretty much the same thing, just secure. The best clients to use from windows are putty (ssh client) and winscp. Winscp looks and acts like ftp but uses ssh on the back end for security.

Reply With Quote
  #3  
Old July 28th, 2003, 08:17 PM
gadtan gadtan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 8 gadtan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have tried ssh but it has connection reset by peer error.

Could it be some corruption in some files for the kernel?

Thanks

Reply With Quote
  #4  
Old July 29th, 2003, 09:34 AM
LANLord's Avatar
LANLord LANLord is offline
IT Dept Scapegoat
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 169 LANLord User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 54 m 43 sec
Reputation Power: 6
Do you have iptables or some other firewall preventing access to the machine?

Reply With Quote
  #5  
Old July 30th, 2003, 01:35 PM
gadtan gadtan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 8 gadtan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
there is no firewall or other security block. The server was installed and connected to a LAN and trying to ftp and telnet.

Reply With Quote
  #6  
Old August 1st, 2003, 02:56 PM
LANLord's Avatar
LANLord LANLord is offline
IT Dept Scapegoat
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 169 LANLord User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 54 m 43 sec
Reputation Power: 6
You probably have to open something in xinetd. Do a man on it.

Reply With Quote
  #7  
Old December 27th, 2003, 02:33 PM
roloss_valdes roloss_valdes is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Mexico
Posts: 3 roloss_valdes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have the same problem with my Linux 8.0

Reply With Quote
  #8  
Old December 28th, 2003, 01:57 PM
dwise1_aol's Avatar
dwise1_aol dwise1_aol is offline
Contributing User
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jan 2003
Location: USA
Posts: 3,803 dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 1 Month 11 h 55 m 53 sec
Reputation Power: 437
Try this:
chkconfig telnet on
chkconfig wu-ftpd on
service xinetd restart

Or if you first want to check whether they are turned on:
chkconfig --list telnet
chkconfig --list wu-ftpd

Remember, xinetd only checks the configuration when it starts up, so you need to restart it before changes will take effect.

In the /etc/xinetd.d directory you will find files named telnet and wu-ftpd . You can modify these configuration files to limit access; eg (from our class notes):

vi telnet
add or modify lines:
only_from = ...
no_access = ...
service xinetd restart

examples:
only_from = 10.196.0.0
# all IP 10.196.x.x
only_from = 10.196.1.{1,2,3,4}
only_from = 10.196.{2,3,7}
only_from = 10.196.0.0/18

We found that the system interpreted multiple lines differently than we expected, so read the man page and play with it.

Reply With Quote
  #9  
Old December 29th, 2003, 12:52 PM
roloss_valdes roloss_valdes is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Mexico
Posts: 3 roloss_valdes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I do not know why I can not run the chkconfig command.

The file is into the /sbin I found it but when I exceute the command appears the next error:

[root@localhost sbin]# chkconfig telnet on
bash: chkconfig: command not found

Why !!!!!

Reply With Quote
  #10  
Old December 29th, 2003, 01:25 PM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,332 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
If you're running as root after a su, you need to use the full path "/sbin/chkconfig" Otherwise, if you logged in as root, you should be able to simply run "chkconfig"

Reply With Quote
  #11  
Old December 29th, 2003, 01:29 PM
dwise1_aol's Avatar
dwise1_aol dwise1_aol is offline
Contributing User
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jan 2003
Location: USA
Posts: 3,803 dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 1 Month 11 h 55 m 53 sec
Reputation Power: 437
Quote:
Originally posted by roloss_valdes
I do not know why I can not run the chkconfig command.

The file is into the /sbin I found it but when I exceute the command appears the next error:

[root@localhost sbin]# chkconfig telnet on
bash: chkconfig: command not found

Why !!!!!

That's strange. You are root, which you need to be. And I just ran it via telnet, so it doesn't matter whether you are logged onto the machine locally or remotely.

Do a echo $PATH to see whether sbin is in the search path (it should be).

Linux never searches in the current directory unless it is in the search path (if you add it, put it very last -- this is important). So to run a program that is in the current directory, you have to tell Linux that it is there with the relative directory path ./, as in:
./chkconfig telnet on

PS
I think I found your problem. You had run su to become root, but you did it the wrong way.
You ran:
su
When I did an echo $PATH, /sbin was not in the search path.

When I ran su -, /sbin and a lot more directories appeared:
Quote:
[wise@pc10593 wise]$ su
Password:
[root@pc10593 wise]# chkconfig telnet
bash: chkconfig: command not found
[root@pc10593 wise]# echo $PATH
/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/wise/bin
[root@pc10593 wise]# exit
exit
[wise@pc10593 wise]$ su -
Password:
[root@pc10593 /root]# echo $PATH
/usr/local/sbin:/usr/sbin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/us
r/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/root/bin
[root@pc10593 /root]#

That - tells su to go through the entire login process, which includes loading root's environment. As you can see, without the - I still had wise's environment loaded.

So run su - and it should work.

Reply With Quote
  #12  
Old August 8th, 2004, 02:08 AM
sbade sbade is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 1 sbade User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Have u cheched /etc/hosts.allow and /etc/hosts.deny file and /etc/securetty

Hi ,

Since u r able to ftp and telnet from local machine to local machine everyting is right with /etc/xinetd.conf and respective daemons

Check if /etc/hsosts.allow and /etc/hosts.denyb files are present . By default this files will be configured such as to deny access to everyone othr that localhost so take backup of these files and remove them.

Then try using telnet or ftp to ur machine from soome other machine using as non root user.

If u r able to do so then it is ok ..

Then try usinh elnet or ftp using root.
If u r not able to do so then u will require to modify /etc/securetty file refer to documentation for so.

I was having similar problem it got resolved after deleting /etc/hosts.allow and /etc/hosts.deny

Bye

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > telnet/ftp Service problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |