フェッチ/プッシュが終わらない

問題

SourceTreeで実行したフェッチ/プッシュが延々終わらない。詳細を確認したら、ユーザー入力待ちで止まってた。

The server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 2048 28:f7:cf:ab:12:78:b0:da:5c:63:67:76:4c:a0:d3:2f
If you trust this host, enter "y" to add the key to
PuTTY's cache and carry on connecting.
If you want to carry on connecting just once, without
adding the key to the cache, enter "n".
If you do not trust this host, press Return to abandon the
connection.
Store key in cache? (y/n)

環境

SourceTree 1.8.3.0

原因

システムにサーバーのキーが未登録のため。

対策

Puttyを起動してキーを記憶させる。

C:\> "C:\Program Files (x86)\Atlassian\SourceTree\tools\putty\plink.exe" user@host
The server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 2048 28:f7:cf:ab:12:78:b0:da:5c:63:67:76:4c:a0:d3:2f
If you trust this host, enter "y" to add the key to
PuTTY's cache and carry on connecting.
If you want to carry on connecting just once, without
adding the key to the cache, enter "n".
If you do not trust this host, press Return to abandon the
connection.
Store key in cache? (y/n) y

参考文献

SourceTreeでfetchできない - 揮発性のメモ