Operating System - HP-UX
1824209 Members
3984 Online
109669 Solutions
New Discussion юеВ

Re: rcp from XP/WIN2K to hp-ux ("remshd: Login incorrect")

 
SOLVED
Go to solution
Thayanidhi
Honored Contributor

rcp from XP/WIN2K to hp-ux ("remshd: Login incorrect")

Hi,
I am trying to copy file from XP to hp-ux using rcp. But always getting the below error.

remshd: Login incorrect.

Names are there in hosts file.
.rhosts and /etc/hosts.equiv contains the XP host name.

/etc/inetd.conf has

shell stream tcp nowait root /usr/lbin/remshd remshd

kshell stream tcp nowait root /usr/lbin/remshd remshd -K

What else need to be checked?

I am trying the below syntax from XP.

rcp .:/

Any help is highly appriciated.

Regds
TT

Attitude (not aptitude) determines altitude.
14 REPLIES 14
renarios
Trusted Contributor

Re: rcp from XP/WIN2K to hp-ux ("remshd: Login incorrect")

Hi TT,

Is your HP system in secure mode?
What does your syslog say?
Our own servers are in secure mode and we use winscp to transfer files (http://winscp.net/eng/index.php)

Cheerio,

Renarios
Nothing is more successfull as failure
Thayanidhi
Honored Contributor

Re: rcp from XP/WIN2K to hp-ux ("remshd: Login incorrect")

Absolutely no errors in syslog.
The server is not secured!
(the passwords are in /etc/passwd)

Any other tought?

Thanks in advance
TT
Attitude (not aptitude) determines altitude.
Wim Rombauts
Honored Contributor

Re: rcp from XP/WIN2K to hp-ux ("remshd: Login incorrect")

Could you first try to rlogin to your HP-system ? rlogin and rcp use the same authentication method. When your rlogin to your HP system, you will be asked a password. Enter the password you think that should be given (the password from the user you think you are connecting as).
If that fails, use fwtmp to format the btmp logfile. You will see which user has tried to connect and you can verify if that is the user you thought you were connecting as.
If rlogin works while giving the password manually, there must be something wrong somewhere in .rhosts, /etc/hosts.equiv, ...
Thayanidhi
Honored Contributor

Re: rcp from XP/WIN2K to hp-ux ("remshd: Login incorrect")

Hi Wim,

rlogin command is not available from XP!
I am unable to format the log using fwtmp.
Do you have exact syntax?

strings btmp shows root, remshd & hostname!!

I enbaled logging in inetd (inetd -l).
I see in syslog the messages, but no errors.
Though I am getting error in XP, the syslog seems to be ok like below.

May 11 11:15:07 rp5470 inetd[4407]: shell/tcp: Connection from thayanidhi.qdsnet
.com (192.168.0.90) at Wed May 11 11:15:07 2005

The same name exists in .rhosts & hosts.equiv

Any other clue is highly appriciated.

Regds
TT
Attitude (not aptitude) determines altitude.
Wim Rombauts
Honored Contributor

Re: rcp from XP/WIN2K to hp-ux ("remshd: Login incorrect")

Formatting of btmp should be something like :
/usr/sbin/acct/fwtmp < /var/adm/btmp

Maybe you can add a "| tail -n50" to get only the last records of the log.

Normally, failed login attempts should be in this file and you should be able to see from which IP-address (your XP machine) and whith what user the login attempt is being made.
renarios
Trusted Contributor

Re: rcp from XP/WIN2K to hp-ux ("remshd: Login incorrect")

Hi TT,

What did you add in the .rhosts file? Only the hostname, or hostname username.
The correct syntax is HostNameField [UserNameField]
If nothing helps, try to create a test configuration:
If you are logged in on XP as TT, create a user TT on UNIX, configure .rhosts and test if this works.

Cheerio,

Renarios
Nothing is more successfull as failure
Mark Nieuwboer
Esteemed Contributor

Re: rcp from XP/WIN2K to hp-ux ("remshd: Login incorrect")

question do you run in IPv4 mode or IPv6 mode.
And in wich mode does XP run.

grtz. Mark
Naveej.K.A
Honored Contributor

Re: rcp from XP/WIN2K to hp-ux ("remshd: Login incorrect")

Hi,

Summarizing hosts.equiv and .rhosts

hosts.equiv is for system wide equivalency (between the local system and remote system)

.rhosts is for user level equivalency. (between the local system and remote system)

I think hosts.equiv is only required to be modified.

On the unix server, enter the hostname of your XP machine in the /etc/hosts.equiv and remove the .rhosts file in the remote user's (unix) home directory. (make sure that the hostname of the XP machine is pingable from unix server and is the real hostname and not an alias)

for more help do man on hosts.equiv

With best wishes,
Naveej
practice makes a man perfect!!!
Thayanidhi
Honored Contributor

Re: rcp from XP/WIN2K to hp-ux ("remshd: Login incorrect")

Both XP and hp-ux are in IPv4 only.

I created an equivalent user in unix and tried.

What ever username I try on XP is being passed to unix. (I am able see this in btmp)

If I try without any user name, then the current windows username is passed to UNIX.

But, don't understand why it is incorrect login?

Any more thoughts?

Regds
TT
Attitude (not aptitude) determines altitude.
Wim Rombauts
Honored Contributor

Re: rcp from XP/WIN2K to hp-ux ("remshd: Login incorrect")

From what I have seen in this thread, there is something preventing th HP-host to detect the XP-client as "trusted".
- Could you check if an nslookup on the HP-UX system of the XP hostname and XP IP-address match with eachother ?
- The XP-machine can only connect to the HP-UX machine with only 1 fixed IP-address ?
Naveej.K.A
Honored Contributor
Solution

Re: rcp from XP/WIN2K to hp-ux ("remshd: Login incorrect")

hi,


Extract from Microsoft Technet ( http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/ServerHelp/52c81f27-de63-40e4-990c-b68761ec20e1.mspx )

Specifying computers (hosts)

Use the Computer.User parameters to use a user name other than the current one. If Computer.User is specified with Source, the .rhosts file on the remote computer must contain an entry for User, as follows:

rcp host99.user7:file1 corp7.admin:file2

The .rhosts file on corp7should have an entry for user7on host99.

If a computer name is supplied as a full domain name containing dots, a user name must be appended to the computer name, as previously described. This prevents the last part of the domain name from being interpreted as a user name, as follows:

rcp domain-name1.user:user92 domain-name2.user:user7

Hope this helps!!!
with best wishes,
Naveej
practice makes a man perfect!!!
Thayanidhi
Honored Contributor

Re: rcp from XP/WIN2K to hp-ux ("remshd: Login incorrect")

Can one of you try to simulate this.
I tried all posibilities.

Any idea is welcome!

Regds
TT
Attitude (not aptitude) determines altitude.
Thayanidhi
Honored Contributor

Re: rcp from XP/WIN2K to hp-ux ("remshd: Login incorrect")

Finally I got it work. The catch is very simple. I need .rhosts entry as below.



So, though I am passing the root login to unix host, the local user (windows login) must be trusted by unix. I was confused here and was trying "root".

Thanks for every one who helped here.

Regds
TT
Attitude (not aptitude) determines altitude.
Thayanidhi
Honored Contributor

Re: rcp from XP/WIN2K to hp-ux ("remshd: Login incorrect")

See my previous post!!
There is no need of equivalent user in unix.
set .rhosts as shown in the previous post.

Regds
TT
Attitude (not aptitude) determines altitude.