The authenticity of host 'localhost (::1)' can't be established.

Error:

[[email protected] hadoop]$ ssh localhost
The authenticity of host ‘localhost (::1)’ can’t be established.
ECDSA key fingerprint is b7:a7:1d:80:34:67:c6:1e:a2:ac:8e:67:a5:38:38:d0.
Are you sure you want to continue connecting (yes/no)? 1
Please type ‘yes’ or ‘no’: yes
Warning: Permanently added ‘localhost’ (ECDSA) to the list of known hosts.
Write failed: Broken pipe

Fix it:

ssh -o StrictHostKeyChecking=no 192.168.xxx.xxx

Screenshot

The authenticity of host 'localhost (::1)' can't be established.