December 2018
Beginner
826 pages
22h 54m
English
The ssh-keygen command we used is a quick way of placing expected host keys in the default location. Because we'd removed the key we expected to be there, we would have failed to connect to our host, and been prompted with the horrible error we saw previously:
<SNIP>debug1: Server host key: ecdsa-sha2-nistp256 SHA256:zW4PXt4o3VRA/OiePUc4VoxBY50us9vl2vemgcrLduAdebug3: hostkeys_foreach: reading file "/home/vagrant/.ssh/known_hosts"debug3: record_hostkey: found key type ECDSA in file /home/vagrant/.ssh/known_hosts:1debug3: load_hostkeys: loaded 1 keys from 192.168.33.11@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ...
Read now
Unlock full access