1825163 Members
4043 Online
109679 Solutions
New Discussion юеВ

remsh "login Incorrect "

 
subrata  Sur
Frequent Advisor

remsh "login Incorrect "

I have created a user id (ssur) to test the command remsh is working or not ...


when we are giving the full option it is not taking

uamtv008 $ remsh express001 -l ssur -n hpp_get_sxdata.prg
remshd: Login incorrect.

But when i m giving
remsh express001 -l ssur
then it will ask me the password and after entering the password i will able to access the server

so What is wrong on that particular command
uamtv008 $ remsh express001 -l ssur -n hpp_get_sxdata.prg
remshd: Login incorrect.


Where i have to check ?
17 REPLIES 17
Uday_S_Ankolekar
Honored Contributor

Re: remsh "login Incorrect "

remsh is not configured the way it should be.

when you run remsh system should not prompt you for the password.

.rhosts file should be configured to run remsh correctly.

You can use ftp instead.

-USA..
Good Luck..
Sridhar Bhaskarla
Honored Contributor

Re: remsh "login Incorrect "

Hi,

In the first case you are asking remsh to run a command on the remote server. So, it will check for .rhosts authenticity and will fail if it is not configured.

In the second case where you are not specifying a command it will actually act like rlogin.

Look at man page for more information.

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

Re: remsh "login Incorrect "

I believe that is how remsh works.

If you dont have a .rhosts or /etc/hosts.equiv file configured in the remote system, remsh will prompt you for the password.

remsh will return login incorrect.

You need to configure .rhosts file in the remote system

In the remote host

# su - ssur
$ vi .rhosts

$

Now try remsh from your host.


Learn What to do ,How to do and more importantly When to do ?
subrata  Sur
Frequent Advisor

Re: remsh "login Incorrect "

I have put the entry in remote server i.e. "express001 " .rhosts file like that

uamtv008 exposx

But is is not working
Michael Tully
Honored Contributor

Re: remsh "login Incorrect "

Is this line in /etc/inetd.conf file like this or has it a '#' in front?

shell stream tcp nowait root /usr/lbin/remshd remshd
Anyone for a Mutiny ?
subrata  Sur
Frequent Advisor

Re: remsh "login Incorrect "

I do not understand

When i m giving remsh express001 -l ssur then it is asking me the password and i m able to login .

But when i m giving -n option and using command then it is giving the "Login In correct"

Although on the remote hosts "express001" it has the entry of rhosts file
uamtv008 exposx
I wonder WHY !!!!
Sridhar Bhaskarla
Honored Contributor

Re: remsh "login Incorrect "

Hi,

On 'express001', make sure uamtv008 is properly getting resolved. To verify it run 'inetd' with connection logging and observe syslog.log while connecting to expresss001 from uamtv008.

#inetd -l
#tail -f /var/adm/syslog/syslog.log

Take another window and logon to umatv008.

uamtv008$remsh express001 -l ssur -n hpp_get_sxdata.prg

Observe the hostname that is appearing in the syslog.log of express001 and add it to .rhosts file.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
subrata  Sur
Frequent Advisor

Re: remsh "login Incorrect "

on the remote hosts it is like that in /etc/inetd.conf
shell stream tcp nowait root /usr/lbin/remshd remshd

and on my server
shell stream tcp nowait root /usr/lbin/remshd remshd

No # before that

Sundar_7
Honored Contributor

Re: remsh "login Incorrect "

You will have to make sure that the remote host is able to resolve your host name "uamtv008"

From your remote host

# getip uamtv008
# ping uamtv008

Learn What to do ,How to do and more importantly When to do ?
subrata  Sur
Frequent Advisor

Re: remsh "login Incorrect "

Oct 14 18:13:15 uapkb086 ftpd[266]: FTP LOGIN FROM 3.77.125.5 [3.77.125.5], expo
data
Oct 14 18:13:16 uapkb086 ftpd[266]: FTP session closed
Oct 14 18:13:24 uapkb086 : su : + ttyp1 root-ssur
Oct 14 18:18:29 uapkb086 ftpd[2113]: FTP LOGIN FROM 3.77.76.126 [3.77.76.126], e
xpodata
Oct 14 18:18:30 uapkb086 ftpd[2113]: FTP session closed
Oct 14 18:20:15 uapkb086 ftpd[2799]: FTP LOGIN FROM 3.77.125.160 [3.77.125.160],
expodata
Oct 14 18:20:16 uapkb086 ftpd[2799]: FTP session closed
Oct 14 18:23:51 uapkb086 : su : + ttyp1 root-exposx
Oct 14 18:24:52 uapkb086 ftpd[3782]: FTP LOGIN FROM 3.77.125.5 [3.77.125.5], exp
odata
Oct 14 18:24:53 uapkb086 ftpd[3782]: FTP session closed
subrata  Sur
Frequent Advisor

Re: remsh "login Incorrect "

just run the command

├в ┬е$ getip uamtv008
3.77.79.197
also able to pin
Sridhar Bhaskarla
Honored Contributor

Re: remsh "login Incorrect "

Hi,

While you are doing 'tail -f syslog.log', try to telnet or rlogin to it from umatv008 and see how the host appears in syslog.log.

Add that to your .rhosts and it should work.

To turn off connection logging, run 'inetd -l' again and watch for the message 'connection logging disabled' in syslog.log.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
subrata  Sur
Frequent Advisor

Re: remsh "login Incorrect "

Still the problem is not solved .

Is there any way to do the thing which remsh service is executing ...
===========================
remsh express001<> -l ssur<> -n hpp_get_sxdata.prg<>
=============================

I have tried rlogin but I am not able to format the syntax like that .
Sridhar Bhaskarla
Honored Contributor

Re: remsh "login Incorrect "

Hi Subrata,

I will try again.

1. Enable connection logging on express001. 'inetd -l'. Watch for the entry 'connection logging enabled' in your /var/adm/syslog/syslog.log file for conformation. Do a 'tail -f /var/adm/syslog/syslog.log'

2. Now connect to express001 from uamtv008 through either telnet or rlogin.

uamtv008$rlogin express001


3. Watch your 'tail -f ' session on express001. You should see a line like "connection from
4. See if that 'something' is uamtv008. If not that explains why your remsh is not working. Add that 'something' to your .rhosts file and then try your original 'remsh' command.

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

Re: remsh "login Incorrect "

If you are not so particular about security issue, put the following entry into your ~/.rhosts file
+ ssur

and then try the remsh command
and see if that works. Let me ask you is the user ssur is having a common home directory on both these workstations uamtv008 and express001? Do you use NIS or local password authentication? If ssur on these two machines is different then you would have to place the "+ ssur" in the homedirectory of ssur on expres001.

Goodluck
Govind
Mark Ellzey
Valued Contributor

Re: remsh "login Incorrect "

Hi,

You must also make sure the host you are comming from is resolvable from the host you are going to. In other words, express001 must be able to resolve the hostname of uamtv008. It can do this either through the local /etc/hosts file, NIS or DNS, depending on your /etc/nsswitch.conf file. Otherwise, even if you have .rhosts or /etc/hosts.equiv set up correctly, express001 still cannot resolve uamtv008.

Regards,
Mark
subrata  Sur
Frequent Advisor

Re: remsh "login Incorrect "

We have change the .rhosts file on express001 (i.e. remote host ) and put an entry of userid and server name of this file whichy is not there . After that we try and it WORKS . Thanx all for all the suggestion to get rid of this problem