1846594 Members
1757 Online
110256 Solutions
New Discussion

remshd: Login incorrect.

 
Leslie Chaim
Regular Advisor

remshd: Login incorrect.

We have several servers this problem is only with one server.

If you say:

remsh $(hostname) date

it works fine. But,

remsh alias_name date

returns: remshd: Login incorrect.

Thanks
If life serves you lemons, make lemonade
11 REPLIES 11
Sridhar Bhaskarla
Honored Contributor

Re: remshd: Login incorrect.

Hi Leslie,

To better troubleshoot this problem, on the server where you are trying to remsh into, enable connection logging by "inetd -l". Keep a tail -f /var/adm/syslog/syslog.log session open and then try both 'remsh HOSTNAME date' and 'remsh ALIAS date'. See what syslog.log reports about the incoming hostname.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Jose Mosquera
Honored Contributor

Re: remshd: Login incorrect.

Hi,

Try to put always the resolution name retrieved by the nslookup command:
#nslookup alias_name

Rgds.
John Poff
Honored Contributor

Re: remshd: Login incorrect.

Hi,

Can you successfully resolve the 'alias_name' hostname on that machine? Is 'nslookup' happy when you look up 'alias_name'?

JP
harry d brown jr
Honored Contributor

Re: remshd: Login incorrect.


And your user name is what?

.rhosts is set up correctly?

live free or die
harry
Live Free or Die
Paul Sperry
Honored Contributor

Re: remshd: Login incorrect.

double check the $HOME/.rhosts file and /etc/hosts.equiv files on the problem server.
Ross Zubritski
Trusted Contributor

Re: remshd: Login incorrect.

Sounds like the "alias" entry isn't in .rhosts.

Regards.

RZ
Leslie Chaim
Regular Advisor

Re: remshd: Login incorrect.

Can I run "inted -l" without killing any current sessions?
If life serves you lemons, make lemonade
Sridhar Bhaskarla
Honored Contributor

Re: remshd: Login incorrect.

Yes. Just run "inetd -l". You do not need to kill the existing inetd.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Leslie Chaim
Regular Advisor

Re: remshd: Login incorrect.

Well, I am a bit frantic:(

This is a production box.

What will effect will it have on the current inted process?

How about any services which inted is currently running?

And, can I then restore to the default mode of inted (without logging)?

Thanks for your help so far!
If life serves you lemons, make lemonade
Sridhar Bhaskarla
Honored Contributor

Re: remshd: Login incorrect.

Hi,

inetd -l will not distrupt anything. You can safely run it anytime.

In order to revert it back, use inetd -c following by inetd -l again. It will disable connection logging. You should see both enabled|disabled messages in syslog.log

#inetd -c
#inet -l

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Leslie Chaim
Regular Advisor

Re: remshd: Login incorrect.

Hi Sri,

I found the problem...

There was a typo in the /etc/hosts file when naming the aliases.
If life serves you lemons, make lemonade