LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-12-2015, 03:35 PM   #1
bioshock
LQ Newbie
 
Registered: May 2015
Location: UK
Distribution: Centos 7.1
Posts: 8

Rep: Reputation: Disabled
Question 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.
 
Old 05-14-2015, 06:22 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,243

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
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
 
1 members found this post helpful.
Old 05-14-2015, 12:38 PM   #3
bioshock
LQ Newbie
 
Registered: May 2015
Location: UK
Distribution: Centos 7.1
Posts: 8

Original Poster
Rep: Reputation: Disabled
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!
 
Old 05-14-2015, 12:52 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,243

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
Your welcome.

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
open-ssh vs. commercial ssh (tru64), public-key auth not possible? cf050 Linux - Networking 8 03-28-2012 12:15 PM
SSH skips public key authentication for a key, but works with another key simopal6 Linux - General 1 07-06-2011 09:33 AM
Putty/SSH login failed when using RSA public key: 'Server refused our key' itsecx@gmail.com Linux - Server 10 10-04-2010 02:19 PM
SSH RSA key fingerprint with network Ephracis Linux - Security 19 02-26-2008 07:03 AM
general question: public key and fingerprint cevjr Linux - Newbie 1 09-19-2003 01:39 PM


All times are GMT -5. The time now is 07:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration