Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to store SSH host key in IntelliJ 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

like image 927
akaIDIOT Avatar asked Jul 19 '11 11:07

akaIDIOT


People also ask

Where should I put the SSH key?

SSH keys are typically configured in an authorized_keys file in . ssh subdirectory in the user's home directory. Typically a system administrator would first create a key using ssh-keygen and then install it as an authorized key on a server using the ssh-copy-id tool.

Can you SSH in IntelliJ?

You can launch an SSH Session right from IntelliJ IDEA. By running commands in a dedicated SSH terminal, you can access data on a remote Web server or a Vagrant instance (virtual machine) via an SSH tunnel, mainly upload and download files.


1 Answers

I just had the same problem with IDEA 13 on Win7, and it was solved by switching to "Native" SSH executable in the Git Settings page. I did that while running Intellij as administrator as suggested by the accepted answer, but the accepted answer didn't fix the problem until I changed the SSH executable.

like image 72
Cameron Stone Avatar answered Sep 19 '22 17:09

Cameron Stone