#Can't ssh after update

1 messages · Page 1 of 1 (latest)

bright anvil
#

Updated my rm2 to 3.9 and now when I can't ssh into the device. It says connection closed rm.ip.address port 22

daring sequoia
bright anvil
#

Figured that was the problem but I don't know which line in the known hosts to remove. The ip address isn't in there

daring sequoia
#

It will be the actual IP address used, not the name you gave in your config file if you've done that

bright anvil
#

I used grep to search but nothing came up

#

Should I just delete the entire file?

daring sequoia
#

That is an option, although you wont be warned if other SSH hosts suddenly have their host keys change

daring sequoia
bright anvil
#

Wifi. I renamed the known_hosts file and it worked

daring sequoia
#

When I grep either address from my known_hosts file, it finds them

#

So something may have been wrong with your grep?

bright anvil
#

When I within the knownhost file itself I don't see any ip address at all. It's weird

daring sequoia
#

The format is hostname,ipaddress format key where hostname, or ,ipaddress are optional

#

It could be using the ipv6 address if your network supports it

daring sequoia
bright anvil
daring sequoia
#

It looks like the initial values are encoded for some reason

#

It could be encrypted?

#

Ah, hashed

bright anvil
#

Perfect. Thanks

daring sequoia
#

So you'll have to hash the original value to figure out what line it is

#

your new known_hosts file should have the hashed value to compare though