LoginSignup
1
1

More than 5 years have passed since last update.

yafcでssh接続できないときの対処方法

Posted at

ホスト間でファイルを転送するとき、私はもっぱら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:~>
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1