How to store SSH host key in IntelliJ IDEA

后端 未结 8 880
慢半拍i
慢半拍i 2020-12-14 15:03

When using SSH as the connection for IDEA\'s git integration, IDEA keeps asking to store the host\'s rsa signature in the host key database. Pressing Yes works, but does not

8条回答
  •  情深已故
    2020-12-14 15:40

    I had same issue with IDEA 13 and 14. By default, IDEA will try to create/access .ssh/known_hosts file in %HOME% directory.

    However, %HOME% was not defined on my system (Windows 7 Enterprise x64). IDEA wouldn't store key; rather, it would ask for it for every operation.

    When I defined %HOME% (%HOME% = %HOMEDRIVE% in my case), everything worked as advertised.

    This is a confirmed bug in IDEA; it should search:

    • %HOME%
    • %HOMEDRIVE%
    • %HOMEPATH%
    • %USERPROFILE%

    Check also this issue.

提交回复
热议问题