- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Bad line received from identity server... when...
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-11-2005 06:01 AM
08-11-2005 06:01 AM
I'm trying to setup rsh and rlogin so I can use it. It works fine now but I am receiving the following in my messeges log file on the linux server.
Aug 11 13:45:41 oradev xinetd[21449]: Bad line received from identity server at 192.168.xxx.xxx: 1023 , 514 : ERROR : UNKNOWN-ERROR
I have this working on the other server without problems. I think the
problem might be on the HP-UX side since the other server, also HP-UX, does not trigger this entry in the log file.
Any ideas on how to solve this?
Thanks,
--
Magnus Andersen
Systems Administrator / Oracle DBA
Walker & Associates, Inc.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 06:27 AM
08-11-2005 06:27 AM
Re: Bad line received from identity server... when remsh from HP-UX to RHEL 3
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 06:47 AM
08-11-2005 06:47 AM
Re: Bad line received from identity server... when remsh from HP-UX to RHEL 3
Thanks,
Magnus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 07:14 AM
08-11-2005 07:14 AM
Re: Bad line received from identity server... when remsh from HP-UX to RHEL 3
to observe this, prior to launching rogin from hpux, pop open a new window to your redhat linux machine and run command
tail -f /var/log/messages
assuming this is where your log is located, and while watching it, from the hpux side, start your rlogin session and see the timing when this error message gets logged.
I have never seen such a thing happening, so I am just suggesting ways to get to the root of this issue.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 07:34 AM
08-11-2005 07:34 AM
Re: Bad line received from identity server... when remsh from HP-UX to RHEL 3
Magnus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 07:40 AM
08-11-2005 07:40 AM
Re: Bad line received from identity server... when remsh from HP-UX to RHEL 3
A different answer than what you're seeking - but you really should be thinking about using ssh for this instead of rsh. Just 5 cents worth of free advice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 07:45 AM
08-11-2005 07:45 AM
Re: Bad line received from identity server... when remsh from HP-UX to RHEL 3
function WhatIsPrcsStatus
{
if [ `eval "remsh oradev -l oracle /usr/local/bin/Check4PSERVERtst"` -eq 1 ]
then
PRCS_DEAD=1
else
PRCS_DEAD=0
fi
}
Thanks,
Magnus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 07:59 AM
08-11-2005 07:59 AM
Re: Bad line received from identity server... when remsh from HP-UX to RHEL 3
As John indicated in his message, ssh is a more secure and much better way of accomplishing this. If I am not mistaken, RHEL 3 delivers openssh at the time of system installation. Just check to see if sshd is running on this rhel server. If it is running, your job is as easy as to generate a pair of public and private keys and put the public key in RHEL box' ~oracle/.ssh/authorized_keys and put the private key in hpux server users's $HOME/.ssh/known_hosts file and you are good to go. Then you replace remsh command with ssh. That's all there is to it.
Coming back to the problem at hand, I am not sure what is triggering that message from one server and not from the other everything being equal, but on the problematic bax, you may have some outdated patches or god forbid some cutting edge patches with bugs which may be representing the user id over tcpip with some erroneous way. If you have a network admin group or have a box that you can configure as a sniffer, using something like ethereal, you can sniff the traffic at the time of session initiation and compare the alike frames to see if you are getting tagged an extroneous character or something. That's all I can think about. If you have a software support contract with hp, I'd suggest to log a call with them. This might be a known patch issue that no one here has ever encountered.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 08:12 AM
08-11-2005 08:12 AM
Re: Bad line received from identity server... when remsh from HP-UX to RHEL 3
However settting up ssh can get just a little involved, but b/c of what it gets you in security it is certainly one of those cases where you'll be extrememly happy you spent the 1/2 day or so learning about it and getting it set up. I know I was after I got it up.
To make the process a bit easier, I *know* that there is one of our more senior forum members who has something of a cookbook that gets up and running in a short amount of time. I just can't remember who it is offhand. If you search here in the forms for "ssh setup" or "ssh startup" you'll see it mentioned. I've seen it mentioned often, and having viewed it, I remember it being pretty good.
I'm hoping that someone who knows of the ssh "cookbook" of which I'm thinking of posts a response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 08:14 AM
08-11-2005 08:14 AM
Re: Bad line received from identity server... when remsh from HP-UX to RHEL 3
When I change the remsh to ssh I get prompted for a password. Is there a way I can avoid that or supply it?
Thanks,
Magnus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 08:16 AM
08-11-2005 08:16 AM
Re: Bad line received from identity server... when remsh from HP-UX to RHEL 3
I'll try and search for the cookbook. I have ssh up and running, I've just never executed command through it. I'm using it instead of telnet.
Thanks,
Magnus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 08:22 AM
08-11-2005 08:22 AM
Re: Bad line received from identity server... when remsh from HP-UX to RHEL 3
Ssh first tries to authenticate using public/private key pairs. If it fails, it falls back to password authentication and does not care about .rhosts. To prevent password asking, you need to generate a pair of keys and place then as I tried to explain in my post above.
on your hpux servers, I think under /opt/ssh/bin, there should be a file called ssh-keygen for the purpose of generating these keys. Man pages should give you the instructions on how to use the keygen functionality.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 08:26 AM
08-11-2005 08:26 AM
Re: Bad line received from identity server... when remsh from HP-UX to RHEL 3
I'm going to work on this tomorrow and get it working. It is just a matter of getting the keys correct if I understand this.
Magnus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 09:27 AM
08-11-2005 09:27 AM
SolutionHere goes.
Given:
Server1 - commands will run from
Server2 - command will issued to
ssh is installed on both servers
sshd is running on server2
login to server1
ssh-keygen -t rsa (you can also use "dsa" instead for a longer key).
(accept all the defaults - put no password).
You'll notice a couple of new files:
id_rsa and id_rsa.pub
or
id_dsa and id_dsa.pub
id_xsa is your local secret key, KEEP IT PRIVATE.
id_xsa.pub is your public key, you'll need to copy this to the server that is going to let you in (directions below).
cd .ssh
chmod og-rwx . *
login to server2
mkdir .ssh
chmod 700 .
now (however you want to do it) copy the id_rsa.pub (id_dsa.pub if you chose dsa) file from server1 to this directory and name it "authorized_keys".
Go back to server 1:
"ssh server2"
It should give a warning about this being a new server, just be agreeable and let it do its thing.
You should be at the command prompt on server2 right now.
Appending more keys to the "known_hosts" file and more keys to "authorized_keys" file lets more servers onto this account just as "server1".
Always generate a unique key per user account and per server (don't reuse private keys).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2005 01:37 AM
08-12-2005 01:37 AM
Re: Bad line received from identity server... when remsh from HP-UX to RHEL 3
I followed your last post and it worked without any problems. Thanks a bunch. One question though, in the next to last paragraph you mention a known_hosts file that is not mentioned anywhere else. Is this file needed? It seems to work great without it...
Thanks again,
Magnus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2005 03:27 AM
08-12-2005 03:27 AM
Re: Bad line received from identity server... when remsh from HP-UX to RHEL 3
known_hosts file resides on the server initiating the ssh session. The server which fields the ssh call, compares the key stored for that particular calling server in its authorized_keys file. think of known_hosts file as a big keychain containing keys to many servers instead of them being scattered.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2005 03:41 AM
08-12-2005 03:41 AM
Re: Bad line received from identity server... when remsh from HP-UX to RHEL 3
Magnus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2005 03:42 AM
08-12-2005 03:42 AM
Re: Bad line received from identity server... when remsh from HP-UX to RHEL 3
Magnus