Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7605591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:12:20+00:00 2026-05-31T00:12:20+00:00

I found a lot of threads about how to setup git over ssh with

  • 0

I found a lot of threads about how to setup git over ssh with msysgit and putty/plink, but rubymine seems to use its own git and ssh implementation (see error message below).

Currently I have putty, msysgit, TortoiseGit and rubymine installed. My repository has two remotes:

[remote "origin"]
    url = ssh://mygituser@255.255.255.255:1234/path/to/repo.git
[remote "origin_putty"]
    url = putty-alias:path/to/repo.git
    puttykeyfile = path/to/my/putty/keyfile.ppk

In putty the connection “putty-alias” is defined with the same user, host and port used in origin and also sets the ssh key again (might not be necessary). Using TortoiseGit to push to origin_putty works fine since it loads the putty ssh key and prompts for my passphrase. However, when I’m trying to use origin from rubymine it prompts for the password of mygituser since there is no keyfile defined.

I already tried the following solutions

  • Setting GIT_SSH to plink, running pageant and loading the key there (no change)
  • using the puttykeyfile line in the definition of origin (no change)
  • using origin_putty from rubymine (does not resolve putty-alias)

The reason I think rubymine uses its own ssh implementation is the error message I get on an unsuccessful authentication:
SSH: authentication methods: [publickey, keyboard-interactive, password] last successful method:

java.io.IOException: Authentication failed: 
    at org.jetbrains.git4idea.ssh.SSHMain.authenticate(SSHMain.java:280)
    at org.jetbrains.git4idea.ssh.SSHMain.start(SSHMain.java:155)
    at org.jetbrains.git4idea.ssh.SSHMain.main(SSHMain.java:135)
fatal: The remote end hung up unexpectedly
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T00:12:22+00:00Added an answer on May 31, 2026 at 12:12 am

    You’re right: by default RubyMine uses trilead-ssh2 Java library, and is not aware about Putty settings.

    You may switch to using the native SSH in the Settings | Version Control | Git | SSH Executable | Native
    But note, that it doesn’t work well with passphrases, so if your private key is passphrase protected, you have to use pageant or similar software.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i found a lot of questions about resizing images in .NET and whatnot, but
Well, I found quite a lot of threads with ISE 500 , but none
I found a lot of questions asking for the best tool, but none asking
I have found a lot of material on the web about using the ASP.NET
I have found a lot of topics about stress-testing web application. My goals are
I can read around a lot about OpenCL, and it seems to be the
I have been reading a lot about Reinforcement Learning lately, and I have found
I've read a lot of posts about using threads, subprocesses, etc.. A lot of
I've found a lot of threads around this question here at stackoverflow. They are
Questions about threads are in no shortage, I know, but I can't seem to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.