- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- remshd: 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
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
08-30-2006 03:11 AM
08-30-2006 03:11 AM
remshd: Login incorrect
My remsh command works every other time to a particular server.
We have 13 servers in all. remsh works consistently between all servers except these two 'medusa' and 'atlas1'.
When on medusa and remsh to atlas1, it works every other time.
Example:
$ hostname
medusa
$ date
Wed Aug 30 10:54:04 EDT 2006
$ remsh atlas1 pwd
remshd: Login incorrect.
$ date
Wed Aug 30 10:54:11 EDT 2006
$ remsh atlas1 pwd
/users/tech/brewsted
$ date
Wed Aug 30 10:54:16 EDT 2006
$
Always works from atlas1 to medusa.
Only from medusa to atlas1 do I see this behavior. Confirmed setup of .rhosts and /etc/hosts.equiv and /etc/hosts.
Don't know why this works, then doesn't work, then works, then doesn't work, etc.
Any ideas?
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2006 03:28 AM
08-30-2006 03:28 AM
Re: remshd: Login incorrect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2006 03:32 AM
08-30-2006 03:32 AM
Re: remshd: Login incorrect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2006 03:35 AM
08-30-2006 03:35 AM
Re: remshd: Login incorrect
are you sure your address is being resolved correctly? How are you resolving your return address (DNS ot /etc/hosts). If multiple DNS, are your servers correctly specified?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2006 03:35 AM
08-30-2006 03:35 AM
Re: remshd: Login incorrect
1. .rhosts must be 600 permission or it silently doesn't work
2. The remote computer entries in .rhosts must be resolvable with nslookup. Take each name (or IP address) and run it through nslookup.
3. The incoming client must have a username that matches the same username in the local server. The UID for this user does not have to match the client's UID but the username must match. If these are NIS machines, that is also a source of username problems.
Because it is intermittant, it is likely due to a DNS problem but that will take a long time to figure out. To bypass the problem, make sure you have this in /etc/nsswitch.conf:
hosts: files [NOTFOUND=continue TRYAGAIN=continue] dns
Then put the name and IP address of medusa in /etc/hosts on the atlas1 system.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2006 04:03 AM
08-30-2006 04:03 AM
Re: remshd: Login incorrect
I'd be remiss if I didn't say that the UNIX r commands are a bad idea from the get go. Use ssh. Secure shell with public key authentication gives you everything you have through the UNIX r commands + X11 tunneling + encrypted pipes t/f the remote hosts.
That being said, and in addition to B.Hassel's input, my first step to troubleshooting rlogin problems is to telnet from the problem host to server (medusa -> atlas1 in this case.
When you're logged in,
tty # not the tty number
who -R | grep ${tty}
The address that the system sees you coming from will be the last column. Ensure that's a host name and that it's the one in the ~/.rhosts.
HTH;
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2006 05:26 AM
08-30-2006 05:26 AM
Re: remshd: Login incorrect
Thanks for the input.
who -R returns the following on atlas1 after I telnet in from medusa:
# who -R
root console Aug 22 09:22 (atlas1)
root pts/ta Aug 29 07:58 (hp725)
brewsted pts/tb Aug 30 10:51 (medusa.gabrobins)
root pts/tc Aug 29 08:23 (hp725)
#
Note the brewsted line with (medusa.gabrobins). I am expecting this to be simply medusa (like the (hp725) lines).
How would I be able to get my telnet session to resolve to 'medusa'?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2006 05:29 AM
08-30-2006 05:29 AM
Re: remshd: Login incorrect
and also nslookup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2006 05:32 AM
08-30-2006 05:32 AM
Re: remshd: Login incorrect
Thanks for the input.
Here is my output:
# hostname
atlas1
# nslookup medusa
Using /etc/hosts on: atlas1
looking up FILES
Name: medusa
Address: 199.231.8.1
Aliases: medusa.gabrobins.com
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2006 06:46 AM
08-30-2006 06:46 AM
Re: remshd: Login incorrect
It looks like you have either problem with direct-reverse name resolution or duplicate IP for one of the servers.
Run 5-6 times
nslookup IP-medusa from atlas
and
mslookup IP-atlas from medusa in order to check 1-st suggestion and ping to IP of a server when it's disconnected from the network
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2006 07:15 AM
08-30-2006 07:15 AM
Re: remshd: Login incorrect
I noticed 11.23 seems to resolve names differently.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2006 07:16 AM
08-30-2006 07:16 AM
Re: remshd: Login incorrect
Both machines 11.11.
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2006 07:59 AM
08-30-2006 07:59 AM
Re: remshd: Login incorrect
an alias in /etc/hosts,
by your DNS server,
or by the domain line in /etc/resolv.conf
so as a workaround in .rhosts:
medusa billh
medusa.gabrobins billh
12.34.56.78 billh
This way, all the possible name resolution results will at least match one of the .rhosts entries.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2006 08:06 AM
08-30-2006 08:06 AM
Re: remshd: Login incorrect
Thanks. This did work.
A good temporary fix until I find out why the hostname is resolving to this.
Thanks again!
Dave