- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- remsh not working with command.
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
12-09-2005 01:08 AM
12-09-2005 01:08 AM
remsh not working with command.
For all the "wrong" reasons, I need to have remsh set up so root on one machine can execute some commands on another, at least to get things working till I can set up something more secure. Lets call them AAAA and BBBB
So I set up BBBB's ~root/.rhosts this way:
AAAAA root
mode 600 and all that. And it works from AAAA when I do something like
# remsh BBBB -l root
, login in without asking password. But if I try to add a command to execute, like
# remsh BBBB -l root ls
Then I get:
remshd: Login incorrect.
? What?
Now this works with another machine, CCCC, that seems to have an older remshd, but I really dont have any idea why the login fails in the second example.
Thanks in advance!
Jesús Couto F.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2005 01:24 AM
12-09-2005 01:24 AM
Re: remsh not working with command.
Dear Jesús Couto,
Execute the following command ,
# remsh BBBB -l root -n ls
This will work !
Infact you have missed the "-n" before the command ( ls )
With Regards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2005 01:24 AM
12-09-2005 01:24 AM
Re: remsh not working with command.
remsh host [-l username] [-n] command
# remsh BBBB -l root -n ls
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2005 01:27 AM
12-09-2005 01:27 AM
Re: remsh not working with command.
# remsh BBBB -l root -n ls
remshd: Login incorrect.
Still does it. And again, it works with and without the -n option with the CCCC host...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2005 01:30 AM
12-09-2005 01:30 AM
Re: remsh not working with command.
If not do it.
Also check that you have /etc/services has entry for "shell". Which allows you to run cmd from other remote systems.
Finally if not working use hosts.equiv for each users...
Cheers...007
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2005 01:34 AM
12-09-2005 01:34 AM
Re: remsh not working with command.
10.1.1.10 BBB
ping BBB
remsh BBB ls -la
send output /etc/resolv.conf
send output /etc/nsswitch.conf
cat $HOME/.rhosts : in the remote hosts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2005 01:39 AM
12-09-2005 01:39 AM
Re: remsh not working with command.
Do this for validation purpose
1)Check your boxes know each other!
By adding them in /etc/hosts
Then in the .rhosts in the root's home directory
make sure you have for each host you want, a line with
2)from host1 type
remsh host2 -n date
This should work
(I just tested but not with root)
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2005 01:56 AM
12-09-2005 01:56 AM
Re: remsh not working with command.
To recapitulate.
Host CCCC is working. It has AAAA on /etc/hosts, and in root's .rhosts it has
AAAA root
So, from AAAA
#remsh CCCC -l root -n date
Fri Dec 9 15:49:48 MET 2005
------------
Now BBBB. BBBB has AAAA in /etc/hosts ... in fact, first difference; I had to add the domain, it didnt work with the hostname alone, so its something like
1.1.1.1 AAAA AAAA.A.A
and in root's .rhosts
AAAA.A.A root
Now, this does work without a command:
#remsh BBBB -l root
gives me a root shell on BBBB. But
#remsh BBBB -l root -n date
remshd: Login incorrect.
Why adding a command makes the login incorrect?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2005 02:25 AM
12-09-2005 02:25 AM
Re: remsh not working with command.
Back when I was trying to get it to run at all, I had changed the /etc/inetd.conf file of BBBB so it had the same line as CCCC where it worked. The only difference between them was that BBBB had "tcp6" as the protocol, while CCCC had "tcp"
Now, why support for IPv6 would break this... anyway, with:
shell stream tcp6 nowait root /usr/lbin/remshd remshd
on /etc/inetd.conf on BBBB, its now working fine.
Thanks
Jesus Couto F.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2005 02:29 AM
12-09-2005 02:29 AM