🔧 Programmierung 🕛 vor 1 Jahr 1 Min Lesezeit
0

Add SSH to Github

↗ Quelle (dev.to)
🗣️ Stimme:

Step 1: Generate a new SSH key




CODE
ssh-keygen -t ed25519 -C "[email protected]" -f ~/.ssh/key-path







Step 2: Display the public key (use this to add to GitHub)




CODE
cat ~/.ssh/key-path.pub







Step 3: Start the SSH agent




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







Step 4: Add the new key to the SSH agent




CODE
ssh-add ~/.ssh/key-path







Step 5: Edit the SSH config file to specify which key to use for GitHub




CODE
nano ~/.ssh/config







Inside the config file, add the following:




CODE
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/key-path






Step 6: Set appropriate permissions for the .ssh directory and the keys




CODE
chmod 700 ~/.ssh              # Permissions for the .ssh folder
chmod 600 ~/.ssh/key-path # Permissions for the private key
chmod 644 ~/.ssh/key-path.pub # Permissions for the public key






Step 7: Test the connection to GitHub




CODE
ssh -T [email protected]



Vollständiger Original-Artikel
Den kompletten Beitrag mit allen Details direkt auf dev.to lesen.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
6 Quellen
CVE-2022-44255 | TOTOLINK LR350 9.3.5u.6369_B20220309 buffer overflow (EUVD-2022-47204)
2 Quellen
CVE-2026-68426 | Linux Kernel up to 6.18.41/7.1.5/7.2-rc3 xfrm validate_xmit_skb_list use after free (Nessus ID 346426)
1 Quelle
Windows 11 Probleme mit gültiger Domänenanmeldung nach September-Update [Workaround]
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Add SSH to Github

Thematisch verwandte Begriffe: Github · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...