How to get Aptana Studio to remember git ssh passw

2019-06-16 10:33发布

I can't find any guides/information on how to get Aptana Studio's built-in git support to remember the ssh password for performing push/pull operations.

Does anybody have any ideas?

标签: git aptana
5条回答
祖国的老花朵
2楼-- · 2019-06-16 10:50

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

NO!. The real path would be

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

查看更多
beautiful°
3楼-- · 2019-06-16 10:52

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

To see if this key is working. First the server must have your public key and you set up the correct remote path to the repository. Then try a normal ssh username@host, if you can log in with the ssh key phrase you should be able to start using git to the remote.

To be able not to have to enter the ssh key phrase every time you want to connect to the remote you could either not have a ssh key phrase.

SSH login without password

Or you need some extra program that saves the password and enters it for you. A so called ssh agent.

Using ssh-agent with ssh

Maybe if you install Egit and uses this instead of Aptanas Git. Its probably possible to have it save your ssh key phrase. (Not verified!)

查看更多
▲ chillily
4楼-- · 2019-06-16 10:53

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

  • your private key is found and is passphrase-protected
  • or because no SSH key is found at all (and SSH defaults back to common authentication)

It also depends on what SSH exe you are using, as this thread mentions:

Aptana Studio sets GIT_SSH environment variable to it's internal program which handles SSH password/passphrase prompt in common conditions.
In case you replacing default ssh.exe executable by setting GIT_SSH to plink.exe, to work with Aptana Studio you also need to set SSH_CMD to the same plink.exe path.

By default, Aptana uses:

[path_to_aptana_studio]/plugins/com.aptana.git.core_[version]/os/win32/sshw.exe
查看更多
疯言疯语
5楼-- · 2019-06-16 10:58

On Linux I have my ssh config file ( ~/.ssh/config ) as follows

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

If you have a key with a password, you'll need something like ssh-agent or other app so you only have to enter your key password one time.

查看更多
该账号已被封号
6楼-- · 2019-06-16 11:05

The super easy way to do it is just to include it in the url when you're importing the git repository.

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

Of course, you'll only want to use this trick with https urls.

查看更多
登录 后发表回答