- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: rcp question.
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
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
07-08-2002 07:48 AM
07-08-2002 07:48 AM
rcp question.
We have to rcp some files from the production box(machA) to the development box(machB) on a regular basis. We have set up the development box's .rhosts file as follows..
machA.abc.com root. But the rcp doesn't work. If we add the development box(machB) in the .rhosts of machA(production) then it works fine. Is this not strange?? Does someone have any clues?? We do not want to have any .rhosts entries for development boxes.Please Help.
Thanks
Brian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 08:03 AM
07-08-2002 08:03 AM
Re: rcp question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 08:04 AM
07-08-2002 08:04 AM
Re: rcp question.
Your question is a little ambiguous at this point. Since rcp can 'from' and 'to' from both hosts, it is important to know which machine is issueing the rcp command and thus which host's remshd is actually responding.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 08:16 AM
07-08-2002 08:16 AM
Re: rcp question.
rcp always runs from the production box(machA) to machB(development). The machB's .rhosts has the required entries(machA.abc.com) but stange enough the rcp from machA only works when there is an entry for machB in machA's .rhosts file, which i feel is not required.
Thanks
Brian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 08:27 AM
07-08-2002 08:27 AM
Re: rcp question.
if you are just wanting to rcp file from A to B then you dont require entries for B in .rhosts of machine A , all you need is that in .rhosts of B an entry for host A , if the A is not defined in /etc/hosts then also you can ahve problems in rcp not working , try using absoulte address ir in .rhosts of B add likt this
10.2.10.35 root 10.2.10.35 is the adress of A
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 08:37 AM
07-08-2002 08:37 AM
Re: rcp question.
Are you invoking rcp this way?
rcp machA:/path/to/file machB:/path/to/file
If so, that would explain why machA wants machB to be in the .rhost file. All you really need to do is this from machA:
rcp /path/to/file machB:/path/to/file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 08:49 AM
07-08-2002 08:49 AM
Re: rcp question.
We are just using from machA
rcp filename machb:/path/to/filename
Thanks
Brian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 08:59 AM
07-08-2002 08:59 AM
Re: rcp question.
Wait... I'm wrong. I'm not thinking right today. Need more coffee. 10am is early for me.
rcp machA:path1 machB:path2
may require _machA_ to be in .rhost of machA. I don't deserve any points for my last suggestion.
This is strange indeed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 01:29 AM
07-09-2002 01:29 AM
Re: rcp question.
~root/.rhosts *must* be owned (i.e. UID in ll(1) output) by root.
As others have suggested, leave out the " root" part from ~root/.rhosts, and, better yet, put the IP-address in there, instead of the host[.domain] name and use the IP-adress in the rcp command. This will reveal any name<-->IP lookup problems.
Also, *start* by using remsh(1) instead of rcp(1). remsh and rcp both use .rhosts, but remsh is much simpler. I.e.:
machA # remsh IP_of_machB date
This should *not* ask for a password and should display the date/time.
By the way, what *exactly* does "doesn't work" mean? I *assume* that it means you get "remshd: Login incorrect.", but we need to know for sure.