problem with ftp and telnet between linux machines
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
problem with ftp and telnet between linux machines
Hi,
I want to ftp or telnet to another linux machine on my home LAN. Both are running SuSE 8 pro. Both have ftp and telnet turned on. I got the ip address of one using ifconfig as su (192.168.1.101). When I try to connect from the other with > telnet 192.168.1.101 I get "Connection closed by foreign host". When I try the same thing with ftp, I get "421 Service not available, remote server has closed connection.".
When I go into Yast2/Inetd services, it says both services are active.
Thanks for the response.
No, I don't have the firewall on.
In /etc/hosts.allow I have:
ALL : LOCAL
ALL : 192.168.1.
which I understand to mean it will allow all services, but only to users on my lan. The curious thing is that when I try to ftp machine A from machine B, I get "Service not available, remote server has closed connection". But when I try to ftp B from A, I get a more jocular "Connected to 192.168.1.104; 220 redy, dude (vsFTPd 1.0.1: beat me, break me); 530 This FTP server is annoymous only; ftp: Login failed.
I'm confused. They're both running the same load of SuSE 8.
It looks it's something wrong with ftp configuration (because they are connecting). First thing is host.allow/host.deny on both machines. Then check ftp configuration. There should be nice graphical utility for this, but I don't have SUSE to look for its name.
First thing is to know if the problem comes from ftp server or from network connection.
Just try a ftp connection locally:
- if it doesn't work --> ftp server doesn't work right: verify .conf files
- if it works --> the problem is on network connection
Are you sur ftp server binds on the right interface? Maybe you're trying to contact an IP adresses where ftp is not listening ...
Please, could you post the result of :
1) netstat -tpan (as root)
2) ifconfig -a
Hey I am trying to do the same thing on my RedHat 7.2. What is my hosts.allow file supposed to look like if I want to be able to telnet from outside my lan? Also, how do I turn off my firewall? Can't I keep it on and still telnet in? If I have to turn it off, I will, but how?
Ok it is obvious I have a lot to learn about the firewall...I'll find a book on that.
As far as /etc/inetd.conf is concerned, I have a line for telnet, but not one for ftp. My line for telnet looks like:
telnet stream tcp nowait root /usr/bin/tcpd in.telnetd
I don't know if this is right, it was just someone's suggestion.
Is it correct, and what would I write for ftp?
Also, in my hosts.allow file, how do I specify that I want even IP addresses outside my lan to be able to telnet in? A message earlier in this thread shows an example of NOT allowing in others outside the firewall, but I don't know how to apply it to the affirmative.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.