LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ssh public key fingerprint (https://www.linuxquestions.org/questions/linux-newbie-8/ssh-public-key-fingerprint-4175542401/)

bioshock 05-12-2015 02:35 PM

ssh public key fingerprint
 
First time post so I hope it's not too long winded!

I've just installed Centos v7.1 and created an additional user.

First putty session I logged in with root and got the public fingerprint message and clicked Yes to accept.

However I noted when I logged in with the user other I did not get the prompt and my home directory didn't have a .ssh directory.

OK, so I created a .ssh (chmod 700) directory within /etc/skel and created a new user. Logged in with that account and still no prompt, although I do now have a .ssh directory generated.

I've tried deleting the known_hosts files in the root's .ssh directory and restarting the sshd daemon but it's not working.

How do I get it to prompt with original public key again?

Thanks for reading.

michaelk 05-14-2015 05:22 AM

Welcome to LinuxQuestions

The known_hosts file is used by the client to identify the host therefore you need to delete the key on the windows PC. The keys are stored in the registry HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\SshHostKeys. You should see the one that identifies the CentOS server.

http://en.wikibooks.org/wiki/OpenSSH...guration_Files

bioshock 05-14-2015 11:38 AM

Goddamnnit, I assumed it was on the local machine but I was looking for .ssh within the file structure.

Thanks very much michaelk, all sorted!

michaelk 05-14-2015 11:52 AM

Your welcome.

You can mark the thread as solved via the thread tools pull down menu at the top of the page.


All times are GMT -5. The time now is 12:07 AM.