SmartGit won't authenticate with ssh

社会主义新天地 提交于 2019-11-28 09:47:37
dazz

Needed to save my ssh private key as an OpenSSH key in PuTTYgen because SmartGit only understand that format.

mmmx

Yes, that's it!

I just want to go in details to help the ones starting from scratch:

on windows you can do the following procedure:

  1. Install msysgit from Here
  2. To generate public/private key pair as needed by many git servers (like Assembla) use PuTTYgen that you find here: click on Generate and move your mouse until it tells you that the key is generated. Optionally, enter a passphrase to protect your private key
  3. Save or copy the public key at your need
  4. Save private key to use with SmartGit using menu voice Conversions/Export OpenSSH key
  5. Use the last file to authenticate in SmartGit
new2cpp

If you want to use putty as ssh client, please follow the below steps:

  1. Edit|Preferences|Commands|Authentication, choose Use System SSH Client
  2. In windows system variables, set GIT_SSH=plink (where putty's plink.exe location)

After that, please use pageant and load the private key

I found it easier to change SmartGit | Preference | Commands | Executables to use "C:\Program Files (x86)\Git\bin\git.exe", and then set GIT_SSH=plink in the system env.

If you're using SmartGit on MacOS X, this problem causes an unexpected dialog to be displayed in the Finder:

"SSH - Enter passphrase for key '/Users/username/.ssh/id_rsa':"

And it pops up when SmartGit is launched. It looks like this:

It's odd and confusing how looks like a Finder dialog, with no reference at all to SmartGit. It's usually caused by the SSH key password not being stored in the Keychain Access app. That's where SmartGit will look for it. You'll need to add it in there, like this:

ssh-add -K ~/.ssh/id_rsa    (assuming id_rsa is your private key file)

The above command is sometimes needed after restarting your computer. See also these guides:

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!