2

In Windows box, I use TortoiseGit to clone remote repository with private key and passphrase. Everything seems ok.

In Linux box, I searched and got SmartGit. It seems very useful but I can not credential to remote repository with same private and passphrase.

Someone tell me what's going between them and how to solved that problem in Linux box. Thanks a lot.

Yue Lin Ho
  • 2,479
  • 23
  • 32

2 Answers2

1

Maybe you need to convert the private key file to OpenSSH format. See this answer.

Community
  • 1
  • 1
Mot
  • 24,166
  • 22
  • 78
  • 117
0

You can try and use the system SSH client for SmartGit:

ssh options

Then you should be able to copy your public/private keys to your $HOME/.ssh directory (provided said directory is correctly protected: chmod 700, and same for your private key: chmod 600)

VonC
  • 1,042,979
  • 435
  • 3,649
  • 4,283
  • Note to self: for passphrase management for TortoiseGit: http://stackoverflow.com/questions/370030/why-git-cant-remember-my-passphrase-under-windows – VonC Jan 04 '12 at 09:00
  • Thanks VonC for answer my question. I use Smartgit as SSH client by default and I copy private key to .ssh directory and chmod but i still cannot credential to remote repository , I do the same on windows with smartgit and cannot credential . :( – user1129413 Jan 04 '12 at 10:29
  • @user1129413: but, since I don't know exactly how the "SmartGit as SSH client" works, my point was for you to use the *other* option (I know the screenshot doesn't reflect that, but I took it from the SmartGit feature page). Ie "Use system SSH client". And then see if your files (public/private keys) are recognized from `$HOME/.ssh`. – VonC Jan 04 '12 at 11:28