- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: rcp command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 04:07 AM
06-13-2002 04:07 AM
rcp command
My .rhosts file is in place on both systems and my hosts files on both system recognize each other. I have also reset the passwd on both hosts to be the same and I am still getting this error message. Any suggestions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 04:11 AM
06-13-2002 04:11 AM
Re: rcp command
Can you do an rlogin from one host to the other?
The .rhost file are in the user home directory?
Regards,
Justo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 04:19 AM
06-13-2002 04:19 AM
Re: rcp command
If its another user then check the host lookup settings using nslookup.
If you are using NIS or NIS+, then ensure that all recent changes have been propogated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 04:20 AM
06-13-2002 04:20 AM
Re: rcp command
It's probably a name resolution issue. Try this:
rlogin to the remote system, even if you have to give the password.
Run "who am i -u". Note the last field. It is how the remote system knows the system you "rlogin-ed" from. That's the name you need to specify in your .rhosts file on the remote system.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 04:51 AM
06-13-2002 04:51 AM
Re: rcp command
The .rhosts file should be owned by the user in whose home directory it is, i.e. ~franks/.rhosts should be owned (UID) by franks.
You can (temporarily) eliminate name-resolution problems by using IP-addresses, i.e. both in the .rhosts file and in the rcp(1) command.
General: rcp(1), rlogin(1) and remsh(1) all use .rhosts (or hosts.equiv), so if you have a problem with one of those, it is best to use a very simple command like:
remsh remote_host date
That should *not* ask for a password and should return the date/time. If so, .rhosts c.q. hosts.equiv is OK.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 05:07 AM
06-13-2002 05:07 AM
Re: rcp command
who -u
The last column is where you came from, put that in the .rhosts
Repeat the in reverse if you wish
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 05:22 AM
06-13-2002 05:22 AM
Re: rcp command
"The .rhosts file should be owned by the user in whose home directory it is ..."
AND
it has to readable by group and world
AND
it must not(!) be writeable by group and world.
(-rw-r--r--)
Hartmut
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 05:26 AM
06-13-2002 05:26 AM
Re: rcp command
The remshd dameon is started by inetd, so you wouldn't see it running all the time. The fact that the user got a "Login incorrect" means that the user has connected the remshd daemon on the remote host but the authentication failed, either because the /etc/hosts.equiv, .rhosts files don't exist/are wrong or no password entry exists for the user on the remote machine. Typically if everything else is correct, this winds up being a hostname lookup issue. Try specifying the IP address in the .rhosts file and then try the FQHN (hostname.domain) and finally just the hostname.
Try reverse looking up the IP address of the client system and using whatever is returned first in .rhosts on the server. If the client is multi-homed ensure you've got the IP address of the correct interface.
Piyush