- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rcp don't 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
07-12-2005 06:35 PM
07-12-2005 06:35 PM
system1 -- 11.23
system2 -- 11.11
i have /etc/.rhosts on both:
system1 root
system2 root
and i want rcp file from second system to the first one:
rcp somefile system2:/tmp/
i get:
remshd: Login incorrect.
what's wrong?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 06:42 PM
07-12-2005 06:42 PM
Re: rcp don't work
To start with the .rhosts should be in the home directory...
Next would be to add the remote host in /etc/hosts... (in case it cant resolve the name...)
ALl the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 06:47 PM
07-12-2005 06:47 PM
SolutionI meant the hoem directory of the user who will be using rcp remsh etc...
If its root and roots home is /home/root it should be there..
If root home is / then it should be in /.
Dont forget the perms something like rw-r------
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 06:52 PM
07-12-2005 06:52 PM
Re: rcp don't work
i trying this under root and i have good /etc/hosts:
192.168.1.1 system1
192.168.1.2 system2
on both systems. and what is more: i can remsh from one system to another with password promt.
system2# remsh system1
-Password:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 06:52 PM
07-12-2005 06:52 PM
Re: rcp don't work
1 Syntax should be rcp somefile system1:/tmp/ if you are logged in system2 . If looged in server1 then rcp -r server2:/somefile /tmp/somefile
2 Check rlogin from server2 to server1 and vise versa
3 Check ping to server1 by hostname
Regards
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 06:57 PM
07-12-2005 06:57 PM
Re: rcp don't work
The idea of .rhosts in the users home directory is to bypass the prompt asking for password...
So what is not good now is your .rhosts that should be in the user's own home directory, but you should prevent others to modify it (Spoofing...)
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 07:01 PM
07-12-2005 07:01 PM
Re: rcp don't work
The remshd command is the server for the remsh command. The man page for remshd(1M) lists the following option:
-l Disallow authentication based on the user's .rhosts file unless the user is a superuser.
Check to see whether the remsh entry in /etc/inetd.conf contains the -l option (for example):
shell stream tcp nowait root /usr/lbin/remshd remshd -l
If so, then remove the -l entry (for example):
shell stream tcp nowait root /usr/lbin/remshd remshd
and tell inetd to reread the /etc/inetd.conf file:
inetd -c
Now the remshd/rcp command should work.
regards
Vinod K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 07:07 PM
07-12-2005 07:07 PM
Re: rcp don't work
thanks all, especially victor!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 09:07 PM
07-12-2005 09:07 PM
Re: rcp don't work
You have to give the host and user entery in .rhosts file for rcp to work and .rhosts file should be in home directory of the user on remote host using rcp command locally to avoid the password prompt otherwise it will ask for password. In your case you have to make entry in /<
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 09:35 PM
07-12-2005 09:35 PM
Re: rcp don't work
since Victor and other ITRC people helped you to solve the problem then would be nice to assign points to them.
This is a good practice in order to help people that in the future will get the same problem. Also it is another way to thank efforts of ITRC people :-)
Thanks for your collaboration!
All the best on ITRC forum!
Best regards,
Fabio
P.S.: please no points for me here....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2005 12:41 AM
07-14-2005 12:41 AM
Re: rcp don't work
scp is already on your 11.23 systems (part of ssh product), and is a free download for you 11.11 systems:
https://h20293.www2.hp.com/portal/swdepot/try.do?productNumber=T1471AA
-Robert