- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: remsh and Login incorrect
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
Discussions
Discussions
Forums
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
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-01-2009 09:55 PM
тАО06-01-2009 09:55 PM
remsh and Login incorrect
I have two systems Prod1 and Prod2 and I need to use remsh between them to execute some command using root account, I have done the following
*at prod1 server .rhosts file has been created with prod2 root line
*at prod2 server .rhosts file has been created with prod1 root line
*at prod1 /etc/hosts.equiv file has been created with prod2 root line
But when I am trying to execute the following command
prod2# remsh prod1 -l ls /etc
I got the following error
remshd: Login incorrect.
Please advice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2009 10:36 PM
тАО06-01-2009 10:36 PM
Re: remsh and Login incorrect
please check /etc/inetd.conf and /etc/services
to start remshd from the inetd daemon in a non-secure environment, the configuration file /etc/inetd.conf must contain an entry as follows:
shell stream tcp nowait root /usr/lbin/remshd remshd
please check /etc/services file also
thanks and regards
Sajjad sahir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2009 10:37 PM
тАО06-01-2009 10:37 PM
Re: remsh and Login incorrect
This is the way I have and it works
in prod1
#cat .rhosts
prod2 root
in prod2
#cat .rhosts
prod1 root
I am able to do remsh prod1 ls /tmp ( from prod2) and the other way also works ok.
and the perms
ls -ls .rhosts
16 -rw-rw-rw- 1 root sys 742 Mar 6 13:02 .rhosts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2009 01:34 AM
тАО06-02-2009 01:34 AM
Re: remsh and Login incorrect
thanks for your replay but I have been checked the /etc/services as well as /etc/inetd.conf and they are seems fine
and also .rhosts has been configured right
please find the attachment
*/etc/inetd.conf
*/etc/services
*.rhosts
note that files at prod1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2009 02:56 AM
тАО06-02-2009 02:56 AM
Re: remsh and Login incorrect
Uh, who is user "ls"?
man remsh
Look for "-l".
What happens with a command like this?:
prod2# remsh prod1 ls /etc
> please check /etc/services file also
Please let /etc/services rest in peace.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2009 04:45 AM
тАО06-02-2009 04:45 AM
Re: remsh and Login incorrect
Make sure they are located in root's home directory, owned by root:sys and the permissions of these files are 400 on both sides and give a rest to hosts.equiv and /etc/services as they do not play a role in what you are trying to accomplish.
On a side thought, as any sensible unix admin, I also should advise you not to use rlogin, remsh and rexec commands due to their insecure communication structure. Consider using ssh and trusted key based authentication as soon as possible.
UNIX because I majored in cryptology...