LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-16-2019, 02:30 AM   #1
validator456
Member
 
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 205

Rep: Reputation: Disabled
Visualhostkey doesn't match


I removed all of my old ssh files. I also deleted the contents of the known hosts file.
Then I created a new ssh keypair for github. I uploaded the public one to github. So far so good.

Then I try to use git to upload changed files to github, and then something weird happens: I see my previous visualhostkey with the message: am I willing to accept?

How is this possible?
 
Old 03-16-2019, 05:26 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,217

Rep: Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545
Because they are separate keys. The server public key allows you to identify the host to prevent man is the middle attacks and is stored in the known hosts file on the client. The hosts keys are typically in the /etc/ssh directory on the server.

The keys you created are for authentication and log you into the server.

Last edited by michaelk; 03-16-2019 at 05:28 AM.
 
Old 03-16-2019, 05:58 AM   #3
validator456
Member
 
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 205

Original Poster
Rep: Reputation: Disabled
Ah, thank you. So this is a thing of the server and not my public/private key.
 
Old 03-16-2019, 07:35 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,217

Rep: Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545
Correct
 
  


Reply

Tags
git, github


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
How to capture 1000 lines before a string match and 1000 line a string match including line of string match ? sysmicuser Linux - Newbie 12 11-14-2017 05:21 AM
Using sed to replace a second match before a match nithintou Programming 4 08-21-2012 06:48 AM
[SOLVED] AWK: match multiple strings in the file, print 1 when match and 0 when not cristalp Programming 12 11-15-2011 10:18 AM
[SOLVED] Match datetime by the minute (not an exact match by the second) [mysql] hattori.hanzo Programming 1 10-21-2010 05:43 PM
grep/sed/awk - find match, then match on next line gctaylor1 Programming 3 07-11-2007 08:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:41 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