LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-02-2015, 02:35 PM   #1
Tachtory
Member
 
Registered: Dec 2011
Distribution: Mint, Slackware
Posts: 43

Rep: Reputation: Disabled
Changed routers, new gateway, how do I update my SSH keys properly?


I just changed routers and went from gateway 192.168.2.xxx -> 192.168.0.xxx

I set up the new static/reserved IPs for all my machines (3: desktop, laptop, server) and amended the `/etc/hosts`files accordingly. Everything works, I can ssh between them, but I get this warning when I log in via ssh:

Code:
ECDSA host key for IP address '192.168.0.xxx' not in list of known hosts.
I'm pretty sure when I first connected it said that it was added to the list of known_hosts, so I don't really know what I missed.
 
Old 12-02-2015, 07:16 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Why don't you look in known_hosts? The file is at $HOME/.ssh/known_hosts.

You may have inadvertently set up your ssh to not adding new hosts to known_hosts. There is an option for that in the ssh_config file.
 
  


Reply



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
Changed routers, Fedora 19 machine no longer connects Entwicklung Linux - Networking 9 03-04-2014 09:10 PM
Get a firewall/gateway in between a modem and router to reach the routers LAN. Oxagast Linux - Networking 1 08-15-2013 12:39 PM
load balance 2 adsl gateway routers richard.dunn Linux - Networking 10 08-08-2008 05:39 AM
Load balancing - 5 routers gateway server raduromeo Linux - Networking 2 07-25-2007 07:18 AM
Configuring SSH to accept only keys (already have keys) fr0st Linux - Security 3 11-04-2003 03:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:27 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
Open Source Consulting | Domain Registration