[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: (Mostly Solved) Re: How to get new RSA key in known_hosts file?



On 05/25/2012 05:30 AM, Celejar wrote:
On Thu, 24 May 2012 22:10:15 -0700
Marc Shapiro<marcnshap@gmail.com>  wrote:

On 5/24/12, Celejar<celejar@gmail.com>  wrote:
On Thu, 24 May 2012 20:24:49 -0700
Marc Shapiro<marcnshap@gmail.com>  wrote:
That got me connected, after answering 'yes' to a few prompts, but...
When I now try to connect, I get the following:

Warning: the RSA host key for 'xxxxxx' differs from the key for the IP
address '192.168.1.2'
Offending key for IP in /home/xxx/.ssh/known_hosts:2
Matching host key in /home/xxx/.ssh/known_hosts:3
Are you sure you want to continue connecting (yes/no)? yes
You can get rid of this by doing the above ssh-keygen command for both
the ip address and hostname of the remote box.
Thanks! That did it. I had not realized that the key was stored separately for the hostname AND the IP address.
As you can see, it does connect me, but only after requiring me to
answer a prompt and enter my password.  I don't think that I needed to
enter my password before.  Password authentication was disabled for
? If your keys are properly set up, you should be automatically logged
in.

security purposes.
This doesn't make sense; if the sshd is instructed to disable password
authentication, then if the key isn't available, the login should just
fail.

Celejar
Well, I can now connect without getting warnings, or errors. It is still asking for my password and I can live with that for now. I will look into authenticating without using passwords but, at least I can connect now.

Thanks, again.

Marc


Reply to: