Allow Webstrom to support SSH protocol sub-projects

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.