Using ssh_config for git remotes in pycharm

Answered

I am trying to use `.ssh/config` file within PyCharm to access a git repository behind a proxy. The settings works from the commandline and it is picked up by the interface so I can see it in VCS->GIT->Remotes. Unfortunately PyCharm doesn't pull or push and replies with generic "Could not read from remote repository" which makes me think it doesn't respect ssh_config. On the other hand the docs are saying that ssh_config should be respected for multi-keys support. Please advise.

0
6 comments

VCS->GIT->Remotes just reads your .git/config file to find configured remotes. Do you mean you can add new remotes from the dialog?

What exactly do you specify in the .ssh/config?

What option is selected for SSH-executable in Settings - Version control - Git?

0
Avatar
Permanently deleted user

I've got the same issue. I have a ssh config file (~/.ssh/config). I added thoses lines:
```

Host bitbucket
Hostname bitbucket.org
identityFile ~/.ssh/id_rsa.pub

```

but I have an error when I try to push/pull : "Could not read from remote repository.". However, when I remove the ssh config file, everything is ok. Is there a way to use ssh config files along with pycharm ?

0

Try specifying the full path to the key instead of the relative one.

0
Avatar
Permanently deleted user

Doesnt work either

0

Add the user entry. E.g. here is mine ssh/config that works:

Host Git
    HostName idea-vcs-deb8
    IdentityFile /Users/dsmirnov/.ssh/pass
    User git

0
Avatar
Permanently deleted user

Arghhh never mind, it was a typo on another entry :( I'm very sorry

0

Please sign in to leave a comment.