Can't telnet or FTP to linux

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
sbsysAsked:
Who is Participating?
 
jlevieCommented:
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
 
samriCommented:
sbsys,

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

0
 
bcolemanCommented:
Can you ping your server?
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
jlevieCommented:
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
 
sbsysAuthor Commented:
I can ping the server and I log as root on the console.
0
 
bcolemanCommented:
Are the ftpd and in.telnetd daemons running out of inetd?
0
 
jlevieCommented:
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
 
jyu_88Commented:
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
 
sbsysAuthor Commented:
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
 
kookkaiCommented:
Setup again :D
0
 
sbsysAuthor Commented:
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
 
jlevieCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.