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 :: how to install bash script on mac terminal 
Shell :: openssl error with ruby 2.3.4 in ubuntu 
Shell :: texlive 2019 in ubuntu 18.4 
Shell :: create a tunnel via permanently 
Shell :: falha ao instalar arquivo não há suporte ubuntu 
Shell :: chocolatey update yarn to particular version 
Shell :: sed allow root login 
Shell :: ubuntu stop jira service 
Shell :: upgrade armbian 
Shell :: Show Commit Log as Graph For Current or All Branches in git command 
Shell :: isntall figma on fedroa 
Shell :: change git commit 
Shell :: how to add geth to environment variables 
Shell :: how to delete unwanted built in apps in phone using cmd 
Shell :: ubuntu reset to default dash 
Shell :: parallel downloading arch 
Shell :: git setup upstream 
Shell :: awk line range 
Shell :: http-server run pwa 
Shell :: awk delimiter semi-colon 
Shell :: emulator android 
Shell :: softwareupdate mac bash 
Shell :: ubuntu 16 lock from terminal 
Shell :: E: Unable to locate package rvm 
Shell :: gitconfig includeif example 
Shell :: add string at the end of each line 
Shell :: powershell free disk space percentage all server liste 
Shell :: -windows run script on program close 
Shell :: remove a folder in linux command 
Shell :: variable replacement bash zero padding 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =