Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

set to ssh github

1.Create an SSH Key
	- First, we need to see if you have an Ed25519 algorithm SSH key 
    already installed. Type this:
    ls ~/.ssh/id_ed25519.pub
    - if “No such file or directory”, then you have to create a new 
    SSH key (Do not include the brackets)
    ssh-keygen -t ed25519 -C <youremail>
    - press Enter, password not required
2. Link your SSH key with Github
	cat ~/.ssh/id_ed25519.pub
    
    copy the output
  
  - go to GitHub > Settings > SSH and GPG keys > new SSH key
  and paste the output of the cat command
  
3. Set your repository to SSH

Go to your repository, click "Code", then click 
the "SSH" button and copy "git@github.com:username/repo.git"
and update the URL of your origin remote like this:

git remote set-url origin git@github.com:username/repo.git

You can check if you have added the remote as HTTPS or SSH using:
git remote -v
Comment

setting ssh for github

ssh-add ~/.ssh/id_rsa
Comment

add ssh to github

# CREATE SSH
1. ssh-keygen
2. cd ~/.ssh
3. cat id_rsa.pub
4. copy key 

# CONNECT TO GITHUB
1. settings
2. SSH and GPG keys
3. SSH keys -> new SSH key
Comment

adding ssh in github

$ clip < ~/.ssh/rsa.pub
Comment

add ssh to github

$ clip < ~/.ssh/id_ed25519.pub
# Copies the contents of the id_ed25519.pub file to your clipboard
Comment

set up ssh for github

ssh-keygen -b 2048 -t rsa       // generate the keys 

ssh-agent -s                  // start the aggent 

ssh-add ~/.ssh/id_rsa         // add private key to ssh
Comment

setting ssh for github

eval "$(ssh-agent -s)"
Comment

ssh for github

$ ssh-add ~/.ssh/id_ed25519
Comment

ssh for github

> Generating public/private ed25519 key pair.
Comment

PREVIOUS NEXT
Code Example
Shell :: load .bashrc 
Shell :: github get repo size 
Shell :: jq filter array 
Shell :: Command to create a new Vue app 
Shell :: pip install django invalid syntax 
Shell :: Remove a file from a Git repository without deleting it from the local 
Shell :: install mongodb debian 10 
Shell :: cmd dir all files subfolders 
Shell :: aws lightsail ssl installation 
Shell :: how to download virtualbox on kali linux 
Shell :: how to clear gradle cache gitignore 
Shell :: generate keystore file for android 
Shell :: linux add user with home directory 
Shell :: command line of linux os 
Shell :: makefile linux 
Shell :: add co author git 
Shell :: powershell global variable 
Shell :: how to switch branches git 
Shell :: how to encrypt and decrypt a text file using openssl rsa public and private keys 
Shell :: copy to clipboard over ssh 
Shell :: uname linux 
Shell :: E: Unable to locate package libclang-cpp-dev 
Shell :: push to multiple repos git 
Shell :: git flow feature 
Shell :: nano enable syntax highlighting 
Shell :: how to install pytesseract in rpi 
Shell :: kills a process on port 
Shell :: ubuntu set deepin terminal as default 
Shell :: how to add a file in git 
Shell :: files 666 folders 755 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =