Solved

Can't telnet or FTP to linux

Posted on 2000-03-01
12
405 Views
Last Modified: 2010-03-18
When I try to telnet or FTP to my server
I get a error "Connection close by foreign host. I just used the standard install of linux 6.1

Please help!!
lonnie
0
Comment
Question by:sbsys
  • 4
  • 3
  • 2
  • +3
12 Comments
 
LVL 15

Expert Comment

by:samri
ID: 2576812
sbsys,

 What login id do you use for both session (telnet and ftp)?

0
 
LVL 1

Expert Comment

by:bcoleman
ID: 2577257
Can you ping your server?
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2577651
You'll get that kind of an error from telnet and ftp if the user's shell as specified in the password file isn't a valid shell. Can you login as that user on the console screen?
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

Author Comment

by:sbsys
ID: 2577988
I can ping the server and I log as root on the console.
0
 
LVL 1

Expert Comment

by:bcoleman
ID: 2578160
Are the ftpd and in.telnetd daemons running out of inetd?
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2578252
Are you trying to telnet or ftp in as root? Linux has remote root access disabled by default and that will also cause the "Connection close by foreign host"
Create an ordinary user accout for remote access then use su to gain root privs.
0
 
LVL 3

Expert Comment

by:jyu_88
ID: 2578757
you don't necessarily have ftp server running/installed.
check whether you have ftp server package by 'rpm -aq |grpe ftpd'
Check if ftpd is running, 'ps -alef | grep ftpd' if standalone, or ps -alef|grep inetd' and grep ftpd /etc/inetd.conf'.
0
 
LVL 40

Accepted Solution

by:
jlevie earned 15 total points
ID: 2578862
Don't bother to look for ftp via ps -ef, it won't be there unless someone already has an ftp session open as the ftp daemon is started on demand from /etc/inetd.conf. Since I don't know what Linux distribution you have I don't know if it would have been installed by default. If it was installed there will be either an ftpd or in.ftpd, typically in /use/sbin.
0
 

Author Comment

by:sbsys
ID: 2578981
The information that I received from both of you has been extremely helpful, but unfortunately, I can only choose one answer.  I would like to thank you both for sharing your knowledge.  It is truly to my regret that I can only send the points to one of you.

Sincerely,
sbsys
0
 

Expert Comment

by:kookkai
ID: 2587263
Setup again :D
0
 

Author Comment

by:sbsys
ID: 2599073
I re-install Linux and now I can logon as anonymous, I can "download" to my PC but when I try to upload I get an error "553 dog.jpg Permission denied [UPLOAD]  Please if anyone wish to answer this, explain it very very simple and in detail.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2599118
That's as it should be. Permitting uploads from an anonymous FTP login is considered very dangerous, so it's normally disabled by default. The best solution is to use an ordinary user account for ftp. If you haven't created one for yourself, it's easy enough to do with linuxconf.

I'm going to guess that you might be using RedHat 6.1, correct? Did you install wu-ftp or just anonftp when you re-installed the OS?
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CPU#7 stuck for 22s! 4 315
I search low cost dedicated server provider 4 30
AIX    Volume group Auto ON/OFF question 2 118
Redirect mail server from IP to IP 2 99
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

820 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