Seeing very strange error on newly install CentOS7, I didn't create or touch any ssh-key. ~/.ssh/ directory is also empty. [john@server1 ~]$ ssh server1key_read: type mismatch: encoding errorkey_read: type mismatch: encoding errorjohn@server1's password:If i try ssh localhost i am not getting that error. what will be the issue? Update:[john@server1 ~]$ ssh -vvv server1OpenSSH_6.4, OpenSSL 1.0.1e-fips 11 Feb 2013debug1: Reading configuration data /etc/ssh/ssh_configdebug1: /etc/ssh/ssh_config line 49: Applying options for *debug2: ssh_connect: needpriv 0debug1: Connecting to server1 [10.1.1.10] port 22.debug1: Connection established.debug3: Incorrect RSA1 identifierdebug3: Could not load /home/john/.ssh/id_rsa as a RSA1 public keydebug1: identity file /home/john/.ssh/id_rsa type 1debug1: identity file /home/john/.ssh/id_rsa-cert type -1debug1: identity file /home/john/.ssh/id_dsa type -1debug1: identity file /home/john/.ssh/id_dsa-cert type -1debug1: identity file /home/john/.ssh/id_ecdsa type -1debug1: identity file /home/john/.ssh/id_ecdsa-cert type -1debug1: Enabling compatibility mode for protocol 2.0debug1: Local version string SSH-2.0-OpenSSH_6.4debug1: Remote protocol version 2.0, remote software version OpenSSH_6.4debug1: match: OpenSSH_6.4 pat OpenSSH*debug2: fd 3 setting O_NONBLOCKdebug3: load_hostkeys: loading entries for host server1 from file /home/john/.ssh/known_hostsdebug3: load_hostkeys: found key type ECDSA in file /home/john/.ssh/known_hosts:2debug3: load_hostkeys: loaded 1 keysdebug3: load_hostkeys: loading entries for host server1 from file /etc/ssh/ssh_known_hostskey_read: type mismatch: encoding errordebug3: load_hostkeys: loaded 0 keys...... omitted some output...debug2: kex_parse_kexinit: none,zlib@openssh.comdebug2: kex_parse_kexinit: none,zlib@openssh.comdebug2: kex_parse_kexinit:debug2: kex_parse_kexinit:debug2: kex_parse_kexinit: first_kex_follows 0debug2: kex_parse_kexinit: reserved 0debug2: mac_setup: found hmac-md5-etm@openssh.comdebug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com nonedebug2: mac_setup: found hmac-md5-etm@openssh.comdebug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com nonedebug1: sending SSH2_MSG_KEX_ECDH_INITdebug1: expecting SSH2_MSG_KEX_ECDH_REPLYdebug1: Server host key: ECDSA 45:9e:70:1d:89:49:d9:dd:ed:df:4b:b0:56:6e:11:31debug3: load_hostkeys: loading entries for host server1 from file /home/john/.ssh/known_hostsdebug3: load_hostkeys: found key type ECDSA in file /home/john/.ssh/known_hosts:2debug3: load_hostkeys: loaded 1 keysdebug3: load_hostkeys: loading entries for host server1 from file /etc/ssh/ssh_known_hostskey_read: type mismatch: encoding errordebug3: load_hostkeys: loaded 0 keysdebug3: load_hostkeys: loading entries for host 10.1.1.10 from file /home/john/.ssh/known_hostsdebug3: load_hostkeys: found key type ECDSA in file /home/john/.ssh/known_hosts:2debug3: load_hostkeys: loaded 1 keysdebug3: load_hostkeys: loading entries for host 10.1.1.10 from file /etc/ssh/ssh_known_hostskey_read: type mismatch: encoding errordebug3: load_hostkeys: loaded 0 keysdebug1: Host 'server1' is known and matches the ECDSA host key.debug1: Found key in /home/john/.ssh/known_hosts:2debug1: ssh_ecdsa_verify: signature correctAs per request here is the file output. $cat /etc/ssh/ssh_known_hostsserver1,server1,server1.example.com,10.1.1.10 ssh-dss AAAAB3NzaC1yc2EAAAADAQABAAABAQCjEZfdesyp4xtJslnXEvG0arhPAddsMFUmO/lbUoeT0p31QAnbfs3LvVc4EP/ziipJUiFZDaKeT3KB+4zmioIwR2pO67c9DDY4zTasVoZv1kL7EiHKYxNIjIMXhYMRm+MQBTiBJWW5NB9SRff/TQSBAnIcXqMZZYco1YO7b95XZR5fkO3LLE8Mr5LvuXwMNlzEu/+9vw69rxWbL+JnRJT2Ydv61h23bSL3reZ9ZvpEMVgF+DkgqxdBp9ao2GfTwLVx96E2/EnmWY2a/2KUlB9TwKGT7GI5VUcep1ia4esHid9wxXhjN/Iuw3k/VFzQSdTvIzg72DqkkPaBErxGJ83V
key_read: type mismatch: encoding error
linux;ssh;key authentication