![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Systematically Translating Service Level Objectives into Design and Operational Polic | iBot | UNIX and Linux RSS News | 0 | 02-22-2008 02:50 AM |
| CEP and SOA: An Event-Driven Architecture for Operational Risk Management | iBot | Complex Event Processing RSS News | 0 | 11-25-2007 02:10 AM |
| Operational BI versus the present-day woes of the Big Banks? | iBot | Complex Event Processing RSS News | 0 | 10-08-2007 03:30 PM |
| Using TELNET | kymthasneem | Linux | 3 | 08-08-2007 04:35 AM |
| Telnet For DMS | r00t.$h3ll | Security | 1 | 02-14-2002 06:14 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Ftp, telnet etc. not operational?
Well I have the programs and everything and the program itself seems to work, but they don't seem to be operateble. I ALWAYS get connection refused on everything. ftp, telnet, rlogin, ssh etc. So it must have something to do with some setting that doesn't allow connections to external hosts or something.
Not at all good at this kind of thing.. Any ideas? /Richard |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
It would help to know what the OS and version is...
To check that ftp or telnet work at all, you should be able to run it from that system by connecting to the same system. If that works, then check to see if your OS uses /etc/hosts.allow and /etc/hosts.deny files - add the system or IP range that you want to allow ftp and telnet from. |
|
#3
|
|||
|
|||
|
Ok. I do have the hosts.* files. I'm currently running Ubuntu/Linux 5.10. I don't really know how to connect to myself but I tried:
161700/etc$ telnet $HOSTNAME Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused 161711/etc$ telnet [IP_ADDRESS] Trying [IP_ADDRESS]... The latter just stays like that (Trying [IP_ADDRESS]...) until I kill it. So I should just add the IP of the machine I want to allow/connect to? A good explanation appreciated. Regards Richard ++ I tried to add "All: [IP_ADDRESS]" to the hosts.allow but it doesn't understand the command. Don't know how to write it... Last edited by riwa; 03-29-2006 at 07:36 AM. |
|
#4
|
|||
|
|||
|
Please click one of the Quick Reply icons in the posts above to activate Quick Reply.
|
|
#5
|
||||
|
||||
|
Your /etc/hosts.deny file should look like this (lines without # in front of them):
ALL:ALL This sets it so everything is denied from everywhere. Then, you set up your hosts.allow to allow only what you want. ALL: 127.0.0.1 This would allow ftp, telnet, ssh, r* commands, etc... to localhost from localhost (localhost should be the system you are working on). If you have another system (PC, UNIX, whatever) that you want to add to allow it to telent or ftp or ssh into this system, you have to add a line for it - by either putting in the IP or the IP range. Let's say the other system has a IP of 192.168.0.100. and you want to ssh from it to the Linux system. On the Linux system, add the following to /etc/hosts.allow - this will allow ANY system within the IP range of 192.168.0.XXX to connect. sshd: 192.168.0. If you only want one IP to connect: sshd: 192.168.0.100 These will allow ssh only - to have ftp or telnet, you would either change the sshd to ALL (NOT recommended) or add lines to specify each individual protocol you want to add. Suggest you start with one and add on as needed. sshd: 192.168.0.100 in.ftpd: 192.168.0.100 in.telnetd: 192.168.0.100 in.rlogind: 192.168.0.100 |
|
#6
|
|||
|
|||
|
Well, it didn't work. Since the other computer is in the same house we have almost the same IP (except for the last number) so I added the first three followed by a period (xxx.xxx.xxx.) to all four of them, separeted like you said.
I noted though, that my programs are not named like the ones you have there. I think they are named just: ftp telnet rlogin ssh Should I try those names instead (I will try it of course but I'd like to know the correct thing anyway). Thanks for everything /Richard ++ Well, didn't work neither. Isn't it possible that I have some setting forbidding in/outcoming connections? On my own IP I get connection refused (ie 'telnet $HOSTNAME') and if I write down the IP (ie 'telnet [IP_NUMBER]') it just freezes (like I mentioned above). Still stuck... -- Last edited by riwa; 03-29-2006 at 10:00 AM. |
|
#7
|
|||
|
|||
|
|
|||
| Google The UNIX and Linux Forums |