Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rcp command

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
is there anything i missed, coz i got this (error) message:

root pts/0 $ rcp <filename> hostname:/home/gwhite
excalibur: A remote host did not respond within the timeout period.

root pts/0 $ rcp -p <filename> hostname:/home/gwhite
excalibur: A remote host did not respond within the timeout period.


both hosts has /etc/hosts.equiv:

hostname user allows access to user on host
+ user allows access to user on any host

*** i'm using root ID ***

i appreciate any help.
 
Are your rshd up?
I hope it works...
Unix was made by and for smart people.
 
Can you telnet there? Can you ping the other host? What is your name resolution?

In regard to rcp:

The remote host allows access if one of the following conditions is satisfied:

The local host is included in the remote host /etc/hosts.equiv file
and the remote user is not the root user. ( I put a separate line for the IP address and another line for the hostname(full hostname) (there was a bug previously where it only recognized the IP and not the name...so I like to put both...but you only need the hostname)

The local host and user name is included in a $HOME/.rhosts file on
the remote user account.

for the $HOME/.rhosts file, it is recommended that the permissions of the .rhosts file be set to 600 (read and write by owner only).

 
hi aixqueen,

'tried it but i got this one:

# rcp <filename> hostname:/<dir>/dir
Permission denied

here what's on my servers:

server_name server#1 server#2

/.rhost server#2 <username> server#1 <username>
/etc/hosts server#2 xx.xx.xx.xx server#1 xx.xx.xx.xx
/etc/hosts.equiv server#2 <username> server#1 <username>

/.rhost => 600, access rights

i'm no longer using the root ID for rcp command just an ordinary user.

finally, i can &quot;rcp&quot; server#1 from server#2 but not in reverse.

server#1 = AIX 4.2.x
server#2 = AIX 4.3.x

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top