如何在IntelliJ IDEA中存储SSH主机密钥 [英] How to store SSH host key in IntelliJ IDEA

查看:1382
本文介绍了如何在IntelliJ IDEA中存储SSH主机密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当使用SSH作为IDEA git集成的连接时,IDEA会一直要求将主机的rsa签名存储在主机密钥数据库中。按Yes可以工作,但不会将密钥存储在数据库中,下次连接被使用时,IDEA会出现相同的问题。按否使连接失败。



我无法为IDEA的SSH连接找到任何配置,Google也没有提供任何有用的结果......关于如何摆脱密钥存储区的任何想法对话?



使用:



IntelliJ IDEA 10.5.1与Windows XP上的JDK 1.6.0_22



MySysGit 1.7.6的bin /和mingw / bin文件夹位于%PATH%中

git.exe作为IDEA中的git可执行文件
$ b

IDEA ssh作为IDE中的SSH可执行文件



openssh-server 1 :5.5p1-6(Debian Squeeze)在服务器端

解决方案

看来Windows不会让IDEA将您的个人设置更改为轻松如人所愿。确保可以保存主机签名来解决问题。为了让IDEA执行此操作,请在Vista / Win7上以管理员身份运行IDEA,或者在XP的<运行方式对话框中只取消一次保护我的计算机免受未授权的程序活动。在建立SSH连接并保存签名后,修复了令人讨厌的对话框。保存签名后,IDEA即使在作为普通用户运行时也接受主机。

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 store the key in a database, the next time the connection is used, IDEA comes with the same question. Pressing No makes the connection fail.

I can't seem to find any configuration for IDEA's SSH connectivity, nor does google supply any useful results... Any thoughts on how to get rid of the key store dialogue?

Using:

IntelliJ IDEA 10.5.1 with JDK 1.6.0_22 on Windows XP

MySysGit 1.7.6 with both its bin/ and mingw/bin folders in %PATH%

"git.exe" as the git executable in IDEA

"IDEA ssh" as the SSH Executable in IDEA

openssh-server 1:5.5p1-6 (Debian Squeeze) on the server side

解决方案

It seems Windows does not let IDEA change your personal settings as easily as one would expect. Making sure the host signature can be saved fixes the issue. To let IDEA do this, run IDEA as Administrator on Vista/Win7 or unset the "Protect my computer from unauthorized program activity" in XP's Run As dialog just once. After making an SSH connection and saving the signature this fixes the annoying dialog. After saving the signature, IDEA accepts the host even when run as a mortal user.

这篇关于如何在IntelliJ IDEA中存储SSH主机密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆