Reputation: 183
I have a git remote repository, keys generated with putty (everything works fine in eclipse with it) and I'm trying to create a new project in phpstorm by git checkout but it says he can't read from git repository. I read that phpstorm is searching for a key named id_rsa (standart value) in the user/.ssh Folder (I only have it in the ssh not .ssh folder, can't create a .ssh folder it says: Give a filename...)
I have a different key-name: xyz.ppk in the /ssh folder and I read that I have to make a ssh config file like this?
Host testadress.com
IdentifyFile ~/ssh/xyz.ppk
(or better .ssh here?) I put the file in the user/ssh/ folder simply named config
I'm using a different then the standart ssh port too. So I'm using the repository adress like:
ssh://[email protected]:1234/home/foldera/git/projectfolder/
But it says: repository test has failed when I test it and he can't read from it to clone the repository. What am I doing wrong here?
Upvotes: 1
Views: 2691
Reputation: 3419
It must be .ssh/id_rsa.pub
for PHPStorm.
On linux you can create the an folder via
mkdir .ssh
On windows you can go two ways:
Via commandline (Start -> open cmd
, changing in directory ( via cd
command and then typing mkdir .ssh
))
Via a trick in the explorer. Open your user folder and then create a new folder with the following name .ssh.
. The explorer things you want to create a file and removes the last dot so it becomes a folder named .ssh
.
In this folder you can put your public key and rename it to `id_rsa.pub
Works fine for me since several PHPStorm versions.
For using another port on your git-repositoy have a look at this SO-question: Using a remote repository with non-standard port
Upvotes: 1