Ftp, telnet etc. not operational?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Ftp, telnet etc. not operational?
# 1  
Old 03-29-2006
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
# 2  
Old 03-29-2006
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  
Old 03-29-2006
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 10:36 AM..
# 4  
Old 03-29-2006
Please click one of the Quick Reply icons in the posts above to activate Quick Reply.
# 5  
Old 03-29-2006
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  
Old 03-29-2006
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 01:00 PM..
# 7  
Old 05-07-2006
Smilie Smilie friends i just nwant to start to make a website!!! NEED HELP S.O.S.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

last 90 days of ftp and telnet

Aix6.1 last | grep ftp shows me only 3 days. last does not show me telnet login or the same as ftp. i'd like to get the last 90 days of users who telnet or ftp to the box. thanks in advance. (3 Replies)
Discussion started by: lawsongeek
3 Replies

2. UNIX for Advanced & Expert Users

Different root password between ftp and telnet

Hello All, I hope somebody can help me I used to work to client using solaris 2.5.1 using telnet to explore disk and ftp to archive data. There is one tester which I can connect using root password using putty but always keep rejecting me when i'm using root password using FTP. Are the... (7 Replies)
Discussion started by: sawrio
7 Replies

3. Shell Programming and Scripting

ftp and telnet in the same script ?? Urgent Help !!

Hi All, I have written a script which ftp certain file to other machine and as the ftp completes , I want to connect to that machine ( at which the file is ftped) . Now the problem is that my script ftp's the file but it does not telnet to that machine. Suppose I am at machine1 and I want to... (11 Replies)
Discussion started by: aarora_98
11 Replies

4. Shell Programming and Scripting

Automating telnet and ftp

Hi, I want to automate FTP. I have a fair idea that this can be done using expect scripting. But I dont how to do it. Please, can anyone give me an example of how to do it in Unix. Thanks in advance (2 Replies)
Discussion started by: sendhilmani123
2 Replies

5. UNIX for Dummies Questions & Answers

telnet, ftp is running but can't connect from outside

Yesterday, I and all my users couldn't connect to my server using ssh, telnet or ftp even though they were running (keep getting "connection timed out" error message). This morning, my partner logon from the main console, restarted sshd and xinetd (I belive he didnt restarted the server), now I... (0 Replies)
Discussion started by: Micz
0 Replies

6. Linux

ftp telnet enable

hi , i have jsut installed linux 9.0 , but i can not ftp or telnet to the system . i have installed the ftp and the telnet server during installation . i have also configured the files to enable the ftp and telnet , the ftp and the telnet daemons are running , but when i do ftp : ftp... (1 Reply)
Discussion started by: ppass
1 Replies

7. UNIX for Dummies Questions & Answers

Telnet FTP scripting

Hi quick question from a unix newbie Working on a project to get me using unix, the point of this project is to find a printer on the network check for jobs in the printer if the printer has no jobs do nothing if the printer has jobs then check the status for errors and e-mail the user. This... (2 Replies)
Discussion started by: w33man
2 Replies

8. Cybersecurity

One accout for FTP other to TELNET

Hi All, If I want to have two user accounts from the same grop in UNIX Solaries. However, I want one of them to be used only for FTP while the other for TELNET. Can anybody tell me how to do that? Best Regards (13 Replies)
Discussion started by: omran
13 Replies

9. IP Networking

FTP or Telnet

Dumb question I'm sure but how on earth do I transfer files from a sco unix machine to my windows 2000 machine. I'm typing commands on my Win2000 machine. All I can seem to do is move files around on the unix system? (8 Replies)
Discussion started by: Timbash
8 Replies

10. UNIX for Dummies Questions & Answers

Automation of telnet and ftp

I have a basic query. I use telnet and ftp very frequently. I want to do it without spending time in typing username and password everytime. I know that if I have .netrc file which contains server address, username, pasword, then just typing ftp will conect to that server with that username and... (10 Replies)
Discussion started by: asutoshch
10 Replies
Login or Register to Ask a Question