ホスト間でファイルを転送するとき、私はもっぱらyafcを使っています。
ところがあるときからsshでの接続に失敗するようになりました。
$ yafc ssh://hogehost
yafc 1.2.4
This program comes with ABSOLUTELY NO WARRANTY; for details type 'warranty'.
This is free software; type 'copyright' for details.
The host key for this server was not found but an othertype of key exists.
An attacker might change the default server key toconfuse your client into thinking the key does not exist
yafc>
調べてみるとknown_hostsに登録されている公開鍵がECDSA形式であることが原因でした。
yafc 1.2.4 はECDSA形式の鍵に対応していないようです。
そこでRSA形式の公開鍵をknown_hostsに登録したところ無事に接続できました。
$ ssh-keyscan -t rsa hogehost >> ~/.ssh/known_hosts
# hogehost SSH-2.0-OpenSSH_6.2
$ yafc ssh://hogehost
yafc 1.2.4
This program comes with ABSOLUTELY NO WARRANTY; for details type 'warranty'.
This is free software; type 'copyright' for details.
password:
remote system: SSH (version 2)
(1) yafc @hogehost:~>