I keep a local git repo at a remote host
gitserver deployed to my LAN. When I am away from home I have to access that server through the LAN's external IP. (The router does not offer loopback).
At home my LAN DNS resolves
gitserver to the LAN address but when I'm away, I put
gitserver to my
/etc/hosts file as the external IP of the LAN.
This works well enough for me but I get a warning that the external IP is not in the known_hosts file.
I'm trying to add that key using ssh-keyscan
ssh-keyscan -p 4444 -t ecdsa 100.101.102.103
I get a result like :
[100.101.102.103]:4444 ecdsa-sha2-nistp256 <GOBBLEDEEGOOKalphanumericstring>
I want to update my
known_hosts file with that key but the
known_hosts file expects what I suspect is a hostID key. For example:
|1|SoMeThing=|AnotherThing= ecdsa-sha2-nistp256 = ecdsa-sha2-nistp256 <GOBBLEDEEGOOKalphanumericstring>
How do I find the
SoMeThing... part -- the HostID? -- of the