Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

github ssh key setup

$ ssh-keygen -t ed25519 -C "your_email@example.com"
# start the ssh-agent in the background
$ eval "$(ssh-agent -s)"
> Agent pid 59566
ssh-add ~/.ssh/id_ed25519
clip < ~/.ssh/id_ed25519.pub
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

Create SSH Key For Github

# Generating an ssh-keygen

# Change directory to the ssh directory
cd ~/.ssh

# Create SSH Key
ssh-keygen -o -t rsa -C "email@email.com"

# Add SSH Key (not the .pub file) to SSH Agent
eval `ssh-agent -s`
ssh-agent -s
ssh-add ~/.ssh/filename

# Create SSH Config file (~/.ssh/config)
"""
# Personal GitHub
Host github.com
    HostName github.com
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/personal_rsa
    
# Non-Personal GitHub
Host nonpersonal.github.com
    HostName github.com
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/nonpersonal_rsa
"""

# ssh-add
ssh-add -l

# test
ssh -T git@github.com
ssh -T git@nonpersonal.github.com

# Copy the contents of the ssh key public file (.pub file) to clipboard
# (WSL2 Specific)
cat filename.pub | clip.exe

# Go to "https://github.com/settings/keys"
# Click New SSH Key
# Paste the contents of the public file to Key
# Click Add SSH Key

# Go to the repository of the project you want to clone
# Select the SSH Link and copy it to the clipboard
# Then clone the repo
git clone git@github.com:SOME_ORGANIZATION/SOME_PROJECT.git
Comment

add ssh key to github

ssh-keygen -t ed25519 -C "your_email@example.com"
Comment

create ssh key github

$ ssh-keygen -t rsa -b 4096 -C "jhon.alexander.lopez@ibm.com"
Comment

adding ssh in github

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

what is ssh key in github

$ cd ~/.ssh
$ ls
Comment

add ssh to github

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

Create GitHub SSH key

ssh-keygen -t rsa -C "ex@email.com"
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

how to create ssh key for github

$ sudo -s -H
$ eval "$(ssh-agent -s)"
> Agent pid 59566
Comment

how to create ssh key for github

$ ssh-add ~/.ssh/id_ed25519
Comment

add ssh key to github

> Generating public/private rsa key pair.
Comment

generating new ssh key github

# start the ssh-agent in the background
$ eval "$(ssh-agent -s)"
> Agent pid 59566
Comment

github how to add ssh key

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

ssh key for github

SSH stands for Secure Shell.
When working with a GitHub repository,
you'll often need to introduce yourself to
GitHub using your username and password.
SSH key is an alternate way to identify yourself
that doesn't require you to enter you username and password every time.

SSH keys come in pairs, a public key that
gets shared with services like GitHub,
and a private key that is stored only on
your computer. If the keys match, you're granted access.
Comment

how to create ssh key for github

> Generating public/private ed25519 key pair.
Comment

PREVIOUS NEXT
Code Example
Shell :: convert wsl to wsl2 
Shell :: nvm install version 
Shell :: update composer mac 
Shell :: vim replace multiple lines 
Shell :: git push asking for username after setting up ssh key 
Shell :: osx stop httpd 
Shell :: sed remove first line 
Shell :: how to set up git user 
Shell :: bash number of elements in variable 
Shell :: bash cheat sheet 
Shell :: raspberry pi install vscode via command line 
Shell :: octoprint log location 
Shell :: SSH key passphrase reset 
Shell :: how to reset local git credentials of android studio 
Shell :: change remote origin git 
Shell :: angular cli disable auto reload 
Shell :: omv install script 
Shell :: docker run always pull 
Shell :: docker Error: no space left on device 
Shell :: golang live reload 
Shell :: ash if statment 
Shell :: wine command not found 
Shell :: mac Running setup.py install for pyodbc did not run successfully. 
Shell :: push existing repository 
Shell :: how to view hidden files and folders on terminal 
Shell :: how to stash specific file in git with message 
Shell :: git stash pop single file 
Shell :: Install Software GUI GNOME for Kali Linux 2022.1 
Shell :: git commands download 
Shell :: running localhost check in linux terminal 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =