- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to make 'rcp' command work?
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
10-25-2002 12:07 AM
10-25-2002 12:07 AM
How to make 'rcp' command work?
I've 2 servers HP-UX. I would like its exchange data by using 'rcp' command. What files need to be set such as /.rhosts and what else?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 12:14 AM
10-25-2002 12:14 AM
Re: How to make 'rcp' command work?
.rhosts in the home dir of the login you are using on the remote server is all you should need, although in some cases you may need or use /etc/hosts.equiv instead (see man hosts.equiv)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 12:55 AM
10-25-2002 12:55 AM
Re: How to make 'rcp' command work?
Make sure you have the ip-address and username in the .rhosts file of the home directory of the user.If you want to rcp HOSTA files from HOSTB as root,
/.rhosts HOSTA
HOSTB-ip root
Then from HOSTB
do a
remsh HOSTA
This should not ask for password.
If it does not ask for a passwd then
#rcp -rp HOSTA:
-r for copying directories
-p preserve permissions.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 01:04 AM
10-25-2002 01:04 AM
Re: How to make 'rcp' command work?
Edit your .rhosts files on both servers like.
.rhosts
unix01 root
unix02 root
check /etc/hosts
145.1.1.1 unix01
145.1.1.2 unix02
rcp -p /.profile unix02:/tmp
done.
RJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 01:31 AM
10-25-2002 01:31 AM
Re: How to make 'rcp' command work?
WorkstationB loginB
After that you should be able to use the rcp command:
rcp WorkstationA:/path/file /path/file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 02:32 AM
10-25-2002 02:32 AM
Re: How to make 'rcp' command work?
It was working by using 'root'.If not, I got the message 'rresvport: bind: Permission denied'.
What need to be changed?
Watcharin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 02:39 AM
10-25-2002 02:39 AM
Re: How to make 'rcp' command work?
You need to have the same UID on both hosts. Put a .rhosts file in the home dir of the user ID on the system where you are not executing the commands.
Make sense? hth,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 02:42 AM
10-25-2002 02:42 AM
Re: How to make 'rcp' command work?
Just change after server name in .rhosts file rhe name of the user.
.rhosts
unix01 user
Regards
RJ.
ps. give points to messages helping you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 05:02 AM
10-25-2002 05:02 AM
Re: How to make 'rcp' command work?
You can find out what is needed by telnetting to the other machine and do a who -a, and look at what is reported as where you are coming from. This is what needs to be in the .rhosts file for the user in his home dir.
PS, / is not always the home dir for root