Operating System - HP-UX
1752701 Members
6171 Online
108789 Solutions
New Discussion юеВ

Re: can't ssh to the server

 
SOLVED
Go to solution
Hanry Zhou
Super Advisor

can't ssh to the server

I just built and installed openssh 3.8 on the 11.0 serverB, but when I do "ssh serverA", I got the following message, and won't let be get onto SErverB. I've already transffered the public key over to $/home/.ssh/authorized_keys.

What else I need to do? something about host_key or know_hosts I need to create?
Please let me know.



Following is the message I got:
$ ssh serverA

It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
85:74:ac:d8:18:c3:40:d6:99:03:13:4c:1b:6f:0f:fc.
Please contact your system administrator.
Add correct host key in /home/peir/.ssh/known_hosts to get rid of this message.
Offending key in /home/peir/.ssh/known_hosts:2
RSA host key for odin2 has changed and you have requested strict checking.
Host key verification failed.
none
9 REPLIES 9
Steven E. Protter
Exalted Contributor
Solution

Re: can't ssh to the server

Check permissions and exchange procedure according to the attached document.

ssh -v for more verbose details.

Please do something about that point assignment ratio as well. 0 for me please.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Hanry Zhou
Super Advisor

Re: can't ssh to the server

SEP,

I've already done steps you documented, and those are not what I concern.

If you read my posing again, the error is about known_hosts, and my questions are if I need to do something on generating host key and send it to the server I am trying to ssh to, or vise versa.

Thanks,
I will assign the points, when I get the proper answers, otherwise, not many people will open it.
none
Jeff Schussele
Honored Contributor

Re: can't ssh to the server

Oh boy!
The points police are on the prowl.

It's amazing how you could be so self-conflicting in one post - hell one sentence.

Jeff

BTW - Would it kill you to credit Chris Vail for that doc?

P.S. I know Harry & you ain't no Harry. He has style.
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Nicolas Dumeige
Esteemed Contributor

Re: can't ssh to the server

If the remote host RSA key have been changed, have you replace the old by the new one ?

Have you deleted the offending line in .ssh/known_hosts ?

All different, all Unix
Nicolas Dumeige
Esteemed Contributor

Re: can't ssh to the server

Hanry Zhou thinks efficency not courtesy.
"A Blunt dude"
All different, all Unix
Nicolas Dumeige
Esteemed Contributor

Re: can't ssh to the server

... with a romantic personal quote though : "spring is coming"
All different, all Unix
Hanry Zhou
Super Advisor

Re: can't ssh to the server

Nicolas,

Your suggestion solves my problem.

You comments are all nice to me. Thanks,
none
Jeff Schussele
Honored Contributor

Re: can't ssh to the server

Hanry,

My friend, I wish to apologize for "intruding" on your post.
But I simply want to keep this forum OUR forum, no more - no less.
And you can assign points to this as you see fit. That IS the point - IMHO.
That's the beauty & wonder of this forum that I love SO much.

Best Rgds,
Jeff

P.S. And don't let mud rakers like us discourage you. I've watched you grow here & look forward to your blossoming - you have it in you. Keep it up!
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Andrew Cowan
Honored Contributor

Re: can't ssh to the server

The reason why the server is rejecting you is that their is already an entry in ~/.ssh/known_hosts for this server. Simply edit the file and remove the line, then try again.

If you want to change the default behaviour from paranoid mode to open, then edit the /etc/ssh/sshd_defaults and change the "StrictMode" parameter from ASK to NO.

Remember if you change sshd_config to restart the sshd process.