1846858 Members
7343 Online
110256 Solutions
New Discussion

Re: remote services

 
Tonatiuh
Super Advisor

remote services

HP-UX 11.23 Itanium server.

1) How can I enable the remote services rsh and rcp. This is to, execute commands in a remote server and copy files to a remote server.

2) I need that certain user can use this remote services (rsh, rcp) but without entering a password. This is, the user must not be asked for a password when he issues an rsh or rcp command.

Thank you in advance!
13 REPLIES 13
Ludovic Derlyn
Esteemed Contributor

Re: remote services

Hi,

need to create .rhosts with hostname and account authorized to connect on the hosts

Tonatiuh
Super Advisor

Re: remote services

Thank you Ludovic. Tha response the question number 2. Can You show me the syntax of .rhosts file?
Mridul Shrivastava
Honored Contributor

Re: remote services

you need to configure / .rhosts,
hostA.fullyqualified.com hostA

Time has a wonderful way of weeding out the trivial
Tonatiuh
Super Advisor

Re: remote services

Hi Mridul. That syntax sounds like /etc/hosts syntax. Are you sure it is the same syntax for .rhosts? where do I put the account authorized?
Ludovic Derlyn
Esteemed Contributor

Re: remote services

hi,

Syntax is "hostname" and account
for example

HostA root
HostA.fqdn root

Services will be starting by default, see to /etc/inetd.conf if not starting.

Chan 007
Honored Contributor

Re: remote services

Hi,

A sample .rhots

hostname users

e.g

hpux1 root
hpux2 root
192.1.2.3 root

Chan
Enrico P.
Honored Contributor

Re: remote services

Hi,
you need to create a file .rhosts in the home dir of the user that you want enable to rcp. this .rhosts file is in the form:

name_remote_host user

The remote service are enable by default.
Check the /etc/inetd.conf for this.

Enrico
Mridul Shrivastava
Honored Contributor

Re: remote services

I am very sorry for the wrong update, it should be line

IP ADDRESS user or
hostname user

Please accept my apologies for the wrong update...
Time has a wonderful way of weeding out the trivial
Jeff_Traigle
Honored Contributor

Re: remote services

man hosts.equiv

It explains everything you should need to know about formating hosts.equiv and .rhosts files.
--
Jeff Traigle
Tonatiuh
Super Advisor

Re: remote services

This is my config files and the result of rsh command:

# cat /etc/hosts.equiv
ias01.lc.org root
ias02.lc.org root
# cat $HOME/.rhosts
ias01.lc.org root
ias02.lc.org root
# /usr/bin/rsh ias02.lc.org date
/usr/bin/rsh: /usr/bin/rsh: The operation is not allowed in a restricted shell.

Config files are identical in both nodes.

rcp command works properly (without password) in both servers.
Mridul Shrivastava
Honored Contributor

Re: remote services

This is a brief description of possible hosts.equiv entries:

Format Function
------ --------

+ or - hostname username Allows password free access for any user

hostname Allows password free access for any user

-hostname Denies password free access for any user

hostname -user or group Denies password free access for user/group
if they log in from that hostname

hostname user/group Allows password free access for user/group
if they log in from that hostname

+ user/group Allows password free access for user/group
from any system

+ Allows any user password free access from
any system

Please try putting + if existing one is not working.
Time has a wonderful way of weeding out the trivial
Tonatiuh
Super Advisor

Re: remote services

I have tried with several of that syntax with same bad result.
Ludovic Derlyn
Esteemed Contributor

Re: remote services

hi,

try remsh ias02.lc.org date

it will be fine