- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- rsh: ipaddress /hostname not found
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
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
тАО07-18-2002 04:26 AM
тАО07-18-2002 04:26 AM
rsh: ipaddress /hostname not found
I have to connect from one host to a different host on the same trusted network and the connection should not require a password.
In server 1, added, a .rhosts file under /
Created entries in the /.rhosts file
hostname
ipaddress
From server 2, tried to connect to server 1, like
rsh hostname
rsh ipaddress
In both, the cases, I get message like
rsh: hostname: not found.
rsh: ipaddress: not found.
Tried to do man rsh (in both machines), and got the error message as "No manual entry for rsh."
What, am I missing here?
Inputs will be sincerely appreciated.
Thanks in Advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 05:47 AM
тАО07-18-2002 05:47 AM
Re: rsh: ipaddress /hostname not found
2. try adding the hostnames with their adresses to /etc/hosts.
you sould then be able to "rsh hostname"
olaf.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 06:11 AM
тАО07-18-2002 06:11 AM
Re: rsh: ipaddress /hostname not found
man pages are not automatically added for rsh. But your problem is definitely name resolution. Check your resolv.conf file and put the hostnames/IP- adresses into /etc/hosts file. That should do it for you.
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 07:40 AM
тАО07-18-2002 07:40 AM
Re: rsh: ipaddress /hostname not found
try first the network / IP to see if both server can communicate :
ping is a first tool. I think the trouble is more routing than anything else .
And may be there's a trouble with rsh, did you try first a telnet or anything else.
Or may be you have firewall options configured on one box...
hth
Benoit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 10:27 AM
тАО07-18-2002 10:27 AM
Re: rsh: ipaddress /hostname not found
# remsh hostname
# remsh ipaddress
Works fine.
I just need, rsh to work, so that, can push a software from server2 to server1.
If, I give
# rsh hostname
I get the error message as
rsh: hostname: not found.
Through some research, in the file inetd.conf, created the entry
shell stream tcp nowait root /usr/sbin/in.rshd in.rshd
In the .rhosts file, created the entry
hostname
Still, the same problem
Thanks for your inputs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 03:21 PM
тАО07-18-2002 03:21 PM
Re: rsh: ipaddress /hostname not found
the '.rhosts' file should be in the USERS home directory, so if you are wanting equivalence for 'root', then it should be '~root/.rhosts'.
After you made the entry into the 'inetd.conf' file, did you restart 'inetd' ?
Beyond that, what do the /var/log/messages file state about the attempt?
If it's a PAM enabled distribution, you might also want to be looking at /etc/pam.d/rsh, and commenting out the 'pam_securetty.so' line.
But no distribution details, so it's hard to know where to go..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 06:52 PM
тАО07-18-2002 06:52 PM
Re: rsh: ipaddress /hostname not found
If what you want to do is start a shell then remsh hostname is the syntax to use.
If you want to execute a particular program on the remote host (assuming you have priveleges to do so)
rsh program hostname
is the syntax you need
hope this helps
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2002 03:19 AM
тАО07-23-2002 03:19 AM
Re: rsh: ipaddress /hostname not found
in unices other than linux the command rsh is not the remote-shell, but the restricted shell! the hostname would then be interpreted as a command.
lucky you did not name the machine "halt"... :-)