LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem with Key Authentication (https://www.linuxquestions.org/questions/linux-newbie-8/problem-with-key-authentication-4175534337/)

RobInRockCity 02-17-2015 04:31 PM

Problem with Key Authentication
 
Am trying to set up SSH key authentication with my new VPS.

When I use CyberDuck to log in to my VPS, the "fingerprint" is not matching the one that was created when my keys were created and the connection is failing.

I am wondering if the problem is due to the fact that I ran ssh-keygen on my MacBook and then copied and pasted the Public Key into a webform in cPanel?

While my host allows you to generate the key pair on the VPS, it creates a security issue in that I would then have to find a safe way to get my Private Key back to my MacBook.

So, instead, I opted for the opposite approach and chose to create the key pair on my Mac - thus leaving the Private Key untouched on my Mac.

Any idea what is going on?


Rob

TenTenths 02-18-2015 09:53 AM

You could try removing the entry for the VPS from your known_hosts file in your .ssh foider and try the connection again.

If you get any error messages then post the whole error message.

RobInRockCity 02-18-2015 01:20 PM

Someone mentioned that I need to get the fingerprint off of my VPS...

That leaves me with more questions...

1.) What makes up a Fingerprint?

Does it include things about the computer? Public/Private Keys? IP? My info?


2.) Does the Fingerprint every change? If so, why?


3.) How would I get the Fingerprint for my VPS?


4.) Why does ssh-keygen display a Fingerprint if that isn't the one I need to use?

Thanks,


Rob

JeremyBoden 02-18-2015 02:12 PM

A fingerprint is a short, rapidly computable, hash of a piece of data where a strong cryptographic hash is not needed.
e.g. to identify a machine or ip address of a machine with a reasonable degree of probability.

Habitual 02-18-2015 02:40 PM

Quote:

Originally Posted by RobInRockCity (Post 5319568)
Someone mentioned that I need to get the fingerprint off of my VPS...

That leaves me with more questions...

1.) What makes up a Fingerprint?

Does it include things about the computer? Public/Private Keys? IP? My info?


2.) Does the Fingerprint every change? If so, why?


3.) How would I get the Fingerprint for my VPS?


4.) Why does ssh-keygen display a Fingerprint if that isn't the one I need to use?

Thanks,


Rob

Have a look at http://www.phcomp.co.uk/Tutorials/Un...ngerprint.html

RobInRockCity 02-18-2015 03:03 PM

Thanks for the replies, but answers to my specific questions would be a better place to start. ;)

Thanks,


Rob


All times are GMT -5. The time now is 05:14 PM.