1754952 Members
2897 Online
108827 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 ?