How to make Aptana Studio remember git ssh password

I cannot find any manuals / information on how to get Aptana Studio native git support to remember the ssh password for push / pull operations.

Does anyone have any ideas?

+8
git aptana
source share
5 answers

Aptana Studio, the GIT program actually built into it, will look for your SSH key in your C: \ Users \ UserName.ssh folder on Windows.

NOT!. The real way would be

% HOME% \. ssh \ id_rsa -> for RSA keys, change the prefix if your DSA key

+1
source share

On Linux, I have an ssh configuration file (~ / .ssh / config) as follows

Host github.com User MyUsername IdentityFile=/home/MyUsername/.ssh/MySshKey` 

If you have a password key, you will need something like ssh-agent or another application, so you only need to enter your password once.

+1
source share

You need to make sure that Aptana asks for a password because:

  • your private key is found and is protected by a passphrase
  • or because the SSH key is not found at all (and by default SSH returns to general authentication)

It also depends on which SSH exe you use, as it mentions :

Aptana Studio sets the GIT_SSH environment GIT_SSH for an internal program that processes an SSH password / passphrase request under normal conditions.
If you replace the default ssh.exe by setting GIT_SSH to plink.exe , to work with Aptana Studio you also need to install SSH_CMD in the same path plink.exe .

By default, Aptana uses :

 [path_to_aptana_studio]/plugins/com.aptana.git.core_[version]/os/win32/sshw.exe 
0
source share

Aptana Studio, the GIT program actually built into it, will look for your SSH key in your C: \ Users \ UserName.ssh folder on Windows.

To find out if this key works. First, the server must have its public key and you set the correct remote path to the repository. Then try the regular ssh username @host, if you can log in using the ssh passphrase, you can start using GIT on the remote control.

To be able to not enter the ssh passphrase every time you want to connect to a remote computer, you may or may not have the ssh passphrase.

SSH login without password

Or you need an additional program that saves a password and enters it for you. The so-called ssh agent.

Using ssh-agent with ssh

Perhaps if you install Egit and use this instead of Aptanas Git. Perhaps this is possible if you save your ssh passphrase. (Not verified!)

0
source share

The easiest way to do this is to simply include it in the url when importing the git repository.

 EG: https://UserName:Password@www.yourserver.com/repo.git 

Of course, you will want to use this trick with https addresses.

0
source share

All Articles