Telnet/Rsh


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Telnet/Rsh
# 1  
Old 07-30-2001
Telnet/Rsh

I am having a strange problem...
I am trying to telnet into my Solaris m/c But it gives "Connection Closed "
Same with rlogin and rsh
But I can Login into ftp or do a finger to that m/c.
I have no hosts.allow or hosts.deny entries .
And also have one hostname in my local m/c .
Can anybody help me out with this.
Thanx
# 2  
Old 07-30-2001
you may want to check /etc/inetd.conf first.
are those services (telent, login...) available?

# 3  
Old 07-31-2001
I think so its available . I mean its not commented in the inetd.conf file.
This is wat i get
% telnet rms
Trying 141.221.66.45...
Connected to rms.
Escape character is '^]'.


SunOS 5.8

Connection closed by foreign host

# 4  
Old 07-31-2001
Looks like you or your host not allow to telnet that machine

1. check your loginname is on local password file if this machine is using local passwd. Or NIS passowrd file...etc.

2. does any user.allow or user.deny files on /etc?

--yellowfish

Smilie
# 5  
Old 08-01-2001
Yes, you can see that inetd.conf is OK by your post.

The problem could also be that the IP address does not resolve to the host name and your machine is configured to disallow telnet from clients without a proper DNS IP to name entry.

Just a thought....

Also, you might check to see if your telnetd server is running identd and if so, in what configuration.....
# 6  
Old 08-01-2001
Neo ,
I am not able to understand wat u want to say in ur last sentence
The user is local with no .allow or .deny entries in it.

And also giving telnet connects to the m/c .But just b4 the login prompt it says "Connection Closed".So i do not think there is a name resolution prob here

# 7  
Old 08-01-2001
are you trying to login as ROOT?
or
are you trying to login as a nonprivilaged user?

if as root, then,
2 things...
1) look in the remote systems /etc/default/login
you should see CONSOLE=/dev/console place a # sign before this line....this line will prevent root to login remotely.

if you want rlogin to work then you must have a .rhosts file with the name of the other systems in your .rhosts file....(this should be on both systems invovled.)
this is not recommended bc you can rlogin without passwd.

i hope this helpsSmilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

RCP slow down and blocks login, telnet, rsh, etc on target server

Hello I have a LPAR AIX 6.1 on Power VM, Vio 2.2.3 and when I execute a rcp to this machine, I cant, simultaneosly, rlogin, telnet, rsh to this same LPARt. This commands stay hanged till the copy end, and Imeddiatlely the comand is executed (rlogin, telnet, rhs, etc). Someone can give me... (1 Reply)
Discussion started by: artur_dietrich
1 Replies

2. AIX

Telnet or rsh takes too much time

telnet or rsh or ftp to an AIX machine takes too much time, like have to wait 3 minutes before the prompt appears. What can I look to troubleshoot this problem thanks (4 Replies)
Discussion started by: filosophizer
4 Replies

3. UNIX for Dummies Questions & Answers

Difference Between Krb5-telnet And Ekrb5-telnet

Hi, I want to know the difference between these two services. Both are under xinetd. Both are used for enabling and disabling Telnet service. So, can somebody please explain me the difference between the two ? Thanks in advance :) (0 Replies)
Discussion started by: kashifsd17
0 Replies

4. UNIX for Dummies Questions & Answers

Automatically login in the telnet from present telnet

Hi, I was writing one script which includes to switch to the another telnet automatically from the present telnet server. I was using rlogin but firstly it takes the same user name of the present telnet and secondly it is prompting for the password. But i want to switch to the another telnet... (2 Replies)
Discussion started by: Prateek
2 Replies

5. Shell Programming and Scripting

Webpage to Telnet via Perl and Expect: Telnet problem?

Somewhat long story: I have a simple Perl CGI script that uses Expect to Telnet to a device and grab some data, and then spits it back to Perl for display on the Webpage. This works for many devices I've tried, but one device just fails, it keeps rejecting the password on this device, only... (1 Reply)
Discussion started by: jondo
1 Replies

6. UNIX for Advanced & Expert Users

Rsh

Hi All, I want to execute a command from my Windows machine to Linux machine using RSH only d:> rsh <Linux machine add> -l <user_name> pwd>dir in linux machine users home directory in .rhosts file I entered the windows machine IP address and user name. In linux etc/hosts.equiv file I... (1 Reply)
Discussion started by: sarwan
1 Replies

7. Linux

Help in RSH

Hi All, I want to execute a command from my Windows machine to Linux machine. d:> rsh <Linux machine add> -l <user_name> pwd>dir in linux machine users home directory in .rhosts file I entered the windows machine IP address and user name. In linux etc/hosts.equiv file I entered the... (1 Reply)
Discussion started by: sarwan
1 Replies

8. Solaris

Can ftp but not telnet/ssh/rsh

Hi , I have a Solaris 9 machine in which I can ftp but telnet/rsh/ssh is not working, although it was working before. I cannot also log in through the console. I get the banner for telnet but it kicks me out. Any ideas? rte (2 Replies)
Discussion started by: run_time_error
2 Replies

9. UNIX for Dummies Questions & Answers

help on rsh

hi friends, i've access to three machines mc1,mc2,mc3,on which i can log in as root. and in order to run a simple command on a remote machine(say remote) on which i cant log in,i use a command as; # rsh remote ls the above runs properly but if i do an ls on following it doesnt work # rsh mc2... (1 Reply)
Discussion started by: mxms755
1 Replies

10. Shell Programming and Scripting

help with rsh

I am trying to run a Perl script using rsh. I need to be able to capture the return code value, so the calling script can handle failures properly. I cannot modify the Perl script I need to run because we use it for all of our servers. Does anyone have a suggestion? (1 Reply)
Discussion started by: kscase
1 Replies
Login or Register to Ask a Question

Featured Tech Videos