Allow Webstrom to support SSH protocol sub-projects
In large projects, it is often the case that sub-projects (submodule) use SSH, but Webstrom does not support it directly.
The following Mac, for example, is handled similarly in a PC.
Open terminal, generate key, and add to Agent
* Generate key, with default file name ~/.ssh/id_rsa, ~/.ssh/id_rsa.pub
$ssh-keygen
* Verify that the agent is already running
$ PS-E | grep [s]sh-agent
9060?? 0:00.28/usr/bin/ssh-agent-l
If not, start it:
$ ssh-agent/bin/bash
* Add the private key to the agent
$ Ssh-add ~/.ssh/id_rsa
Enter Passphrase For/users/emmap1/.ssh/id_rsa:
Identity added:/users/emmap1/.ssh/id_rsa (/USERS/EMMPA1/.SSH/ID_RSA)
Use the Ssh-add command to list the keys and the agent is managing.
* Check if the private key is added successfully
$ ssh-add-l
2048 7a:9c:b2:9c:8e:4e:f4:af:de:70:77:b9:52:fd:44:97/users/manthony/.ssh/id_rsa (RSA)
* Add the public key to the GIT server
$ cat ~/.ssh/id_rsa.pub
$ pbcopy < ~/.ssh/id_rsa.pub
Open a Git server and add a new public key in the Add key column of my account
Points:
* The private key needs to be add to this pageant
* Every boot must start pageant, (Sourcetree on the PC will start it automatically)
Allow Webstrom to support SSH protocol sub-projects