Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

github push use ssh

# change the origin remote from https to ssh

git remote set-url origin git@github.com:<Username>/<Project>.git
Comment

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

add ssh keys to github

1. ssh-keygen -o -t rsa -C "your_email@example.com"
2. Press return for each option
3. cat ~/.ssh/id_rsa.pub
4. Copy the entire cat's output on "Settings - SSH and GPG keys - New SSH key" on GitHub
Comment

add ssh key to github

ssh-keygen -t ed25519 -C "your_email@example.com"
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

how to add ssh key to github

ssh-keygen -t rsa -C "@gmail.com"
Comment

add ssh key to github

> Enter a file in which to save the key (/c/Users/you/.ssh/id_rsa):[Press enter]
Comment

setting ssh for github

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

add ssh key to github

> Generating public/private rsa key pair.
Comment

github how to add ssh key

Host *
  AddKeysToAgent yes
  UseKeychain yes
  IdentityFile ~/.ssh/id_rsa
Comment

PREVIOUS NEXT
Code Example
Shell :: secure shell 
Shell :: create user with group 
Shell :: emporary failure resolving 
Shell :: mkdir -p shell 
Shell :: sed print from match to end of file 
Shell :: cmake command not found 
Shell :: git config set email 
Shell :: connect to heroku cli 
Shell :: insomnia 
Shell :: automatically clean package cache in Arch Linux 
Shell :: clone repo with large size using git bash 
Shell :: Automatically run program on Linux startup via systemd 
Shell :: check if cuda installed 
Shell :: how to install zsh using brew 
Shell :: linux check if a group exist or not 
Shell :: execute bash script with sudo 
Shell :: terminal run sh file 
Shell :: how to delete files in linux 
Shell :: how to check wsl version 
Shell :: npm user install packages 
Shell :: update node with nvm 
Shell :: test ssh connection for github 
Shell :: tailwind installation 
Shell :: what is uname -r linux 
Shell :: how to delete branch on git 
Shell :: Adding more changes to your last commit 
Shell :: command used to install django cms 
Shell :: redis scan keys and print values shell 
Shell :: what is user in linux? 
Shell :: how can fix some refs in git github 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =