cellural-automats
TypeScript icon, indicating that this package has built-in type declarations

0.0.29 • Public • Published

cellural-automats

GitLab

HTTPS SSH

GitHub

HTTPS SSH

SSH VCS Configs

GitLab

GitLab SSH Config

GitHub

GitHub SSH Config

Common VCS configuration

SHH KEY ISSUE

Stack Overflow solution

Setup SSH for Git

Start ssh-agent if not started:

eval `ssh-agent -s`

Generate a new SSH key:

ssh-keygen -t rsa -C "volodymyr.kravchenko.2000@gmail.com"

Create a SSH config file

Using a text editor, edit the ~/.ssh/config file. Add the following entries to the configuration file using the following format:

# GitHub.com
Host github.com
  Preferredauthentications publickey
  IdentityFile ~/.ssh/volodymyrkr_rsa

# GitLab.com
Host gitlab.com
  Preferredauthentications publickey
  IdentityFile ~/.ssh/volodymyrkr_rsa
  
# BitBucket.org
Host bitbucket.org
  Preferredauthentications publickey
  IdentityFile ~/.ssh/volodymyrkr_rsa

Add already created key

Add your private key using ssh-add

ssh-add ~/.ssh/volodymyrkr_rsa

Enter passphrase for /home/user/.ssh/volodymyrkr_rsa: Identity added: /home/user/.ssh/volodymyrkr_rsa (/home/user/.ssh/volodymyrkr_rsa)

Check if the key is added (parameter is a lowercase L):

ssh-add -l

2048 55:96:1a:b1:31:f6:f0:6f:d8:a7:49:1a:e5:4c:94:6f /home/user/.ssh/volodymyrkr_rsa (RSA)

Now you can use Git without extra passphrase prompts.

Other ways

Verify SSH git connection

Try to connect to your Git server:

GitLab.com

ssh -T git@gitlab.com

GitHub.com

ssh -T git@github.com

Package Sidebar

Install

npm i cellural-automats

Weekly Downloads

0

Version

0.0.29

License

ISC

Unpacked Size

24.6 kB

Total Files

23

Last publish

Collaborators

  • volodymyrkr