1830042 Members
2173 Online
109998 Solutions
New Discussion

rsh

 
SOLVED
Go to solution
bossuyt_2
Occasional Advisor

rsh

A problem on rsh (On a NT client )

From a NT client I want to use rsh to an Unix client.

On NT client I use a command like :
rsh [Unix hostname] -l [Unix account] -n [ls] ( to have ls Unix command on my computer NT)

I have configure my Unix station with the file .rhost like :
[IP client NT] [account NT]

Ihave this message :

remsh : Login incorrect

Other services like telnet or ftp are corrects
I use PC-Xware and it's also correct.

An idea ? ?
7 REPLIES 7
Solution

Re: rsh

Your settings seem correct, so it should work. Just to confirm the .rhosts is located on the homedir of the Unix username?

Andre
Frederic Sevestre
Honored Contributor

Re: rsh

Hi,
Did you check the .rhosts permissions ?
It must be in the users' home directory,belong to the user, and not be writable by other users.
Regards
Fr??d??ric
Crime doesn't pay...does that mean that my job is a crime ?
Robin Wakefield
Honored Contributor

Re: rsh

Hi,

Is your PC's IP address resolvable on the Unix box. If not, try adding it to /etc/hosts and reconnect.

Rgds, Robin
Jim Booker
Advisor

Re: rsh

If none of the suggestions have worked so far, try replacing the host name in the .rhosts file, with the ip address of the nt workstation. I that works, that means the hostname of your nt workstation is not being resolved on your unix box.
Roger Baptiste
Honored Contributor

Re: rsh

hi,

check the /var/adm/syslog/syslog.log file
of the unix system. It will give you a error message pointing to the exact source of the problem. Usual suspects being:
the permission , format of .rhosts file.
unresolvable hostnames (add an entry for
the IP address)

Also, try rlogin to see whether that works.

Check the /etc/services and /etc/inetd.conf
file and see whether the remsh/rexec services
are enabled.

-raj
Take it easy.
Frank Slootweg
Honored Contributor

Re: rsh

Your .rhosts file looks OK, but one would normally use the hostname of the NT system, not the IP address.

Anyway, I advise to first do a remsh(1) from the HP-UX system to itself, that will reveal/eliminate any mode/UID/GID problems with the .rhosts file.

I.e. on the HP-UX system, while logged in as the target user:

$ remsh `hostname` date

Of course for this to work, the hostname of the HP-UX system should be (temporarily) included in the .rhosts file of the target user.

For what it is worth, I have

ipc1fs02 tfslootw

in my .rhosts file. ipc1fs02 is the *ARPA* (i.e. not the NT/Windows) hostname of my NT system and tfslootw is my NT user name (i.e. without the domain part).
Jose Luis Barrera
New Member

Re: rsh

By now! (still working on it)

There is a problem with the users auth in the unix machine, i dont know how does it send the NT user.

The relative solution by now, check with "who -R" what is the hostname/ip sent by youre machine to the unix server.

then add it to the ".rhosts" file of the user specified in the "-l user" used in the NT command and a "+" as the user of the NT, this means that every user from this machine can access the remsh service in the unix machine.

What now? Well for intranets i think there is not much truoble on it, but what we must find is the username sent by the NT machine to the UNIX machine

.rhosts of the [user] has
"ipaddress +"
rsh command
"rsh unixmachine -l user command"