- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rcp and remsh problem
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-15-2004 06:09 AM
07-15-2004 06:09 AM
rcp root@fkigb:/usr2/x/bam/TEST /usr2/x/bam/TEST
I am getting the following error message:
remshd: Login incorrect.
If I remsh fkigb -l root, it works fine!
Any help very appreciated & points awarded.
Thanks,
Brad
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 06:14 AM
07-15-2004 06:14 AM
Re: rcp and remsh problem
rcp fkigb:/usr2/x/bam/TEST /usr2/x/bam/TEST
-Karthik S S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 06:21 AM
07-15-2004 06:21 AM
Re: rcp and remsh problem
As long as you have root equivalency on both boxes you dont need the user name. it will just confuse the other system.
rcp hostname:/from/file/here /to/file/here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 06:24 AM
07-15-2004 06:24 AM
Re: rcp and remsh problem
Thanks for the help, though!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 06:29 AM
07-15-2004 06:29 AM
SolutionNEVER USE + in the .rhosts file... that is a bad no no...
From the man page...
+ Any remote host name matches the host
name + in hostequiv.
This means that anyone who can hack your /etc/hosts.equiv... which I strongly hope you arent using...
from hosts.equiv manpage...
Users from equivalent remote hosts are
permitted to access a local account using rcp or remsh or to rlogin to
the local account without supplying a password
Try to refrain from using /etc/hosts.equiv...
And in .rhosts put only the specific hosts you want to give access to any other hosts.
Also, I would recommned using /etc/hosts.allow and /etc/hosts.deny to regulate what processes can access your boxes...
here is asample of my /etc/hosts.allow:
# cat /etc/hosts.allow
#all : all : banners=/usr/localcw/opt/sysguard/banners : allow
ftpd : all : banners=/usr/localcw/opt/sysguard/banners : allow
telnetd : all : banners=/usr/localcw/opt/sysguard/banners : allow
tftpd : all : banners=/usr/localcw/opt/sysguard/banners : allow
logind : all : banners=/usr/localcw/opt/sysguard/banners : allow
rlogind : all : banners=/usr/localcw/opt/sysguard/banners : allow
remshd: all : banners=/usr/localcw/opt/sysguard/banners : allow
sidftpd : all : banners=/usr/localcw/opt/sysguard/banners : allow
rexecd : all : banners=/usr/localcw/opt/sysguard/banners : allow
sshd : all : banners=/usr/localcw/opt/sysguard/banners : allow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 10:56 PM
07-15-2004 10:56 PM
Re: rcp and remsh problem
Regarding /etc/hosts.allow and /etc/hosts.deny you will need to install tcp wrappers for that feature. TCP wrappers are simple to set up. Here is a reference to the manual.
http://www.docs.hp.com/hpux/onlinedocs/B2355-90774/B2355-90774.html
You can download HP's TCP Wrappers application from software.hp.com, just search on tcp wrappers.
Since putting + root in the
configuration file solved your problem what I suspect is a name resolution issue on the destination system fkigb. If you used the short name for the remote system, test it w/ the fully qualified name.
A good test is to rlogin or telnet to fkigb and run " who -Rm" and check to see how your client resolves in the output...fully qualified or shortname ) whatever you get is what you need to put in .rhosts.
ex.
who -Rm
root pts/tb Jul 16 05:44 (gator.atl.hp.com)
For security, dont just put + root in the configuration. For added security load HP's secure shell which is also free and available from software.hp.com. TCP wrappers would help you out also.
Hope this helps,
Todd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2004 02:01 PM
08-24-2004 02:01 PM