DEV Community

ShulyAvraham
ShulyAvraham

Posted on • Edited on

1

SSH Key Pair

SSH-Key

Accessing a remote repository via SSH without the need to provide username and password every time I pull or push.

  • Go to your command line prompt (e.g. the GitHub CLI installed previously), and run:
ssh-keygen
Enter fullscreen mode Exit fullscreen mode

Use the same command for Windows, only with .exe extension.

  • Just hit Enter for each of the questions asked...
  • It will generate a .ssh/ directory in your home dir with key-pair inside, in the form of 2 files:
    • id_rsa - is the private key - which I always keep locally on my computer
    • id_rsa.pub is the public key - which I can publish somewhere on the internet
ls ~/.ssh
Enter fullscreen mode Exit fullscreen mode
  • View and copy the contents of id-rsa.pub (depending on the OS you're using, use the appropriate editor or file viewer, here I will use Linux command cat or less. On Windows one might use Notepad).
cat ~/.ssh/id-rsa.pub
Enter fullscreen mode Exit fullscreen mode
  • Copy the file content
  • Go back to your GitHub account page: Click Setting->SSH and GPG keys->New SSH key->paste the public key into the Key text box, provide some Title-> Add SSH key.
  • Once this is done, I will not need to provide my username and password every time I communicate with the remote repo.
  • This key pair might be copied over and used over several computers

Image of AssemblyAI tool

Transforming Interviews into Publishable Stories with AssemblyAI

Insightview is a modern web application that streamlines the interview workflow for journalists. By leveraging AssemblyAI's LeMUR and Universal-2 technology, it transforms raw interview recordings into structured, actionable content, dramatically reducing the time from recording to publication.

Key Features:
🎥 Audio/video file upload with real-time preview
🗣️ Advanced transcription with speaker identification
⭐ Automatic highlight extraction of key moments
✍️ AI-powered article draft generation
📤 Export interview's subtitles in VTT format

Read full post

Top comments (1)

Collapse
 
spo0q profile image
spO0q

Hi,

Maybe add -t rsa -b 4096 to your ssh-keygen command or consider using the Ed25519 algorithm with -t ed25519

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay