-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
73 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% if include.image_src %} | ||
<noscript> | ||
<img src="{{include.image_src}}" alt="{{include.image_alt}}" title="{{include.image_title}}" /> | ||
</noscript> | ||
|
||
<img data-src="{{include.image_src}}" alt="{{include.image_alt}}" title="{{include.image_title}}" class="blur-up lazyload" /> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ layout: post | |
title: SSH key on github - Windows and Linux | ||
lang: en | ||
description: Step-by-step guide on how to generate and add an SSH key to GitHub for secure authentication to repositories. The article covers creating SSH keys using the ED25519 algorithm, offering detailed instructions for Linux and Windows users. Learn how to configure the SSH key on GitHub to facilitate operations such as push and pull without the need for repeated authentication. | ||
cover_image: 'https://i.imgur.com/9GC9TvD.jpeg' | ||
cover_image: 'https://i.imgur.com/9GC9TvD.png' | ||
canonical_url: 'https://ryan.dev.br/2023-04-17-githubSSH-en' | ||
imageAlt: 'A statue of an oktokat (github mascot) in the center, in the background a laptop with the main page of GitHub open.' | ||
tags: | ||
|
@@ -42,7 +42,7 @@ To generate an SSH key on Linux, you need to open the terminal and type the foll | |
ssh-keygen -t ed25519 -C <your-email> | ||
``` | ||
|
||
![ssh-keygen on linux](https://i.imgur.com/J56UKtq.png) | ||
{% include lazyload.html image_src='https://i.imgur.com/J56UKtq.png' image_alt='ssh-keygen on linux' image_title='ssh-keygen on linux' %} | ||
|
||
After typing the command, you will be prompted to fill in some information, such as the key name and password. You can type any name as long as you don't forget it; in my case, I just pressed `enter` so that Git would automatically generate the key name and have no password. | ||
|
||
|
@@ -54,15 +54,15 @@ cat id_ed25519.pub | |
|
||
and copy the key that appears on the screen. | ||
|
||
![getting the key in linux](https://i.imgur.com/nT9OTKx.png) | ||
{% include lazyload.html image_src="https://i.imgur.com/nT9OTKx.png" image_alt="getting the key in linux" image_title="getting the key in linux" %} | ||
|
||
Now you need to go to the GitHub settings page and add the key you just copied. | ||
|
||
here a shortcut for you to go directly to the GitHub SSH keys settings page: [SSH Keys Settings Page](https://github.com/settings/keys) | ||
|
||
here you should go to `New SSH key` and paste the key you copied earlier. | ||
|
||
![paste key on github - linux](https://i.imgur.com/5L6KrD8.png) | ||
{% include lazyload.html image_src="https://i.imgur.com/5L6KrD8.png" image_alt="paste key on github - linux" image_title="paste key on github - linux" %} | ||
|
||
By clicking on Add SSH key, you will add the SSH key to GitHub. | ||
|
||
|
@@ -74,7 +74,7 @@ ssh [email protected] | |
|
||
if everything goes well, you will see a success message, and you can clone any repository you have access to; in my case, I cloned my own repository. | ||
|
||
![Testing ssh key - linux](https://i.imgur.com/eDKiWUy.png) | ||
{% include lazyload.html image_src="https://i.imgur.com/eDKiWUy.png" image_alt="Testing ssh key - linux" image_title="Testing ssh key - linux" %} | ||
|
||
### Windows | ||
|
||
|
@@ -88,7 +88,7 @@ ssh-keygen -t ed25519 -C <seu-email> | |
|
||
replace `<your-email>` with your GitHub email. | ||
|
||
![ssh-keygen on windows](https://i.imgur.com/bCSWptA.png) | ||
{% include lazyload.html image_src="https://i.imgur.com/bCSWptA.png" image_alt="ssh-keygen on windows" image_title="ssh-keygen on windows" %} | ||
|
||
After typing the command, you will be prompted to fill in some information, such as the key name and password. You can type any name as long as you don't forget it; in my case, I just pressed `enter` so that Git would automatically generate the key name and have no password. | ||
|
||
|
@@ -100,13 +100,13 @@ type id_ed25519.pub | |
|
||
and copy the key that appears on the screen. | ||
|
||
![getting ssh key in windows](https://i.imgur.com/XdeXkT1.png) | ||
{% include lazyload.html image_src="https://i.imgur.com/XdeXkT1.png" image_alt="getting ssh key in windows" image_title="getting ssh key in windows" %} | ||
|
||
Finally, now you need to go to the GitHub settings page and add the key you just copied. here a shortcut for you to go directly to the GitHub SSH keys settings page: [SSH Keys Settings Page](https://github.com/settings/keys) | ||
|
||
here you should go to `New SSH key` and paste the key you copied earlier. | ||
|
||
![paste key on github - windows](https://i.imgur.com/fYitTGb.png) | ||
{% include lazyload.html image_src="https://i.imgur.com/fYitTGb.png" image_alt="paste key on github - windows" image_title="paste key on github - windows" %} | ||
|
||
By clicking on Add SSH key, you will add the SSH key to GitHub. | ||
|
||
|
@@ -118,7 +118,7 @@ ssh [email protected] | |
|
||
if everything goes well, you will see a success message, and you can clone any repository you have access to; in my case, I cloned my own repository. | ||
|
||
![Testing ssh key - linux](https://i.imgur.com/OQaJNyj.png) | ||
{% include lazyload.html image_src="https://i.imgur.com/OQaJNyj.png" image_alt="Testing ssh key - linux" image_title="Testing ssh key - linux" %} | ||
|
||
## Conclusão | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ title: Chave SSH no github - Windows e Linux | |
lang: pt-br | ||
published: true | ||
description: Guia passo a passo sobre como gerar e adicionar uma chave SSH ao GitHub para autenticação segura em repositórios. O artigo aborda a criação de chaves SSH usando o algoritmo ED25519, oferecendo instruções detalhadas para usuários Linux e Windows. Aprenda a configurar a chave SSH no GitHub para facilitar operações como push e pull sem a necessidade de autenticação repetida. | ||
cover_image: 'https://i.imgur.com/9GC9TvD.jpeg' | ||
cover_image: 'https://i.imgur.com/9GC9TvD.png' | ||
canonical_url: 'https://ryan.dev.br/2023-04-17-githubSSH-pt-br' | ||
devto_url: 'https://dev.to/ryrden/chave-ssh-no-github-windows-e-linux-3gj6' | ||
imageAlt: 'Uma estatueta de um oktokat (Mascote do github) ao centro, ao fundo um laptop com a página principal do GitHub aberta.' | ||
|
@@ -46,7 +46,7 @@ Para gerar uma chave SSH no Linux, você precisa abrir o terminal e digitar o se | |
ssh-keygen -t ed25519 -C <seu-email> | ||
``` | ||
|
||
![ssh-keygen on linux](https://i.imgur.com/J56UKtq.png) | ||
{% include lazyload.html image_src="https://i.imgur.com/J56UKtq.png" image_alt="ssh-keygen on linux" image_title="ssh-keygen on linux" %} | ||
|
||
Após digitar o comando, você vai ser solicitado a preencher alguns dados, como o nome da chave e a senha da chave. Você pode digitar o nome que quiser desde que não se esqueça dele, no meu caso, eu apenas apertei `enter` para que o git gerasse o nome da chave automaticamente e que a chave não tenha senha. | ||
|
||
|
@@ -58,15 +58,15 @@ cat id_ed25519.pub | |
|
||
e copie a chave que aparecer na tela. | ||
|
||
![getting the key in linux](https://i.imgur.com/nT9OTKx.png) | ||
{% include lazyload.html image_src="https://i.imgur.com/nT9OTKx.png" image_alt="getting the key in linux" image_title="getting the key in linux" %} | ||
|
||
Agora você precisa ir até a página de configurações do github e adicionar a chave que você acabou de copiar. | ||
|
||
aqui um atalho para você ir direto para a página de configurações de chaves SSH do github: [Página de configurações de chaves SSH](https://github.com/settings/keys) | ||
|
||
aqui você deve ir em `New SSH key` e cole a chave que você copiou anteriormente. | ||
|
||
![paste key on github - linux](https://i.imgur.com/5L6KrD8.png) | ||
{% include lazyload.html image_src="https://i.imgur.com/5L6KrD8.png" image_alt="paste key on github - linux" image_title="paste key on github - linux" %} | ||
|
||
Clicando em Add SSH key, você vai adicionar a chave SSH ao github. | ||
|
||
|
@@ -78,7 +78,7 @@ ssh [email protected] | |
|
||
se tudo der certo, você vai ver uma mensagem de sucesso e você já pode fazer o clone de qualquer repositório que você tenha acesso, no meu caso eu fiz o clone do meu próprio repositório. | ||
|
||
![Testing ssh key - linux](https://i.imgur.com/eDKiWUy.png) | ||
{% include lazyload.html image_src="https://i.imgur.com/eDKiWUy.png" image_alt="Testing ssh key - linux" image_title="Testing ssh key - linux" %} | ||
|
||
### Windows | ||
|
||
|
@@ -92,7 +92,7 @@ ssh-keygen -t ed25519 -C <seu-email> | |
|
||
substitua `<seu-email>` pelo seu email do github. | ||
|
||
![ssh-keygen on windows](https://i.imgur.com/bCSWptA.png) | ||
{% include lazyload.html image_src="https://i.imgur.com/bCSWptA.png" image_alt="ssh-keygen on windows" image_title="ssh-keygen on windows" %} | ||
|
||
Após digitar o comando, você vai ser solicitado a preencher alguns dados, como o nome da chave e a senha da chave. Você pode digitar o nome que quiser desde que não se esqueça dele, no meu caso, eu apenas apertei `enter` para que o git gerasse o nome da chave automaticamente e que a chave não tenha senha. | ||
|
||
|
@@ -104,13 +104,13 @@ type id_ed25519.pub | |
|
||
e copie a chave que aparecer na tela. | ||
|
||
![getting ssh key in windows](https://i.imgur.com/XdeXkT1.png) | ||
{% include lazyload.html image_src="https://i.imgur.com/XdeXkT1.png" image_alt="getting ssh key in windows" image_title="getting ssh key in windows" %} | ||
|
||
Enfim, agora você precisa ir até a página de configurações do github e adicionar a chave que você acabou de copiar. aqui um atalho para você ir direto para a página de configurações de chaves SSH do github: [Página de configurações de chaves SSH](https://github.com/settings/keys) | ||
|
||
aqui você deve ir em `New SSH key` e cole a chave que você copiou anteriormente. | ||
|
||
![paste key on github - windows](https://i.imgur.com/fYitTGb.png) | ||
{% include lazyload.html image_src="https://i.imgur.com/fYitTGb.png" image_alt="paste key on github - windows" image_title="paste key on github - windows" %} | ||
|
||
Clicando em Add SSH key, você vai adicionar a chave SSH ao github. | ||
|
||
|
@@ -122,7 +122,7 @@ ssh [email protected] | |
|
||
se tudo der certo, você vai ver uma mensagem de sucesso e você já pode fazer o clone de qualquer repositório que você tenha acesso, no meu caso eu fiz o clone do meu próprio repositório. | ||
|
||
![Testing ssh key - linux](https://i.imgur.com/OQaJNyj.png) | ||
{% include lazyload.html image_src="https://i.imgur.com/OQaJNyj.png" image_alt="Testing ssh key - linux" image_title="Testing ssh key - linux" %} | ||
|
||
## Conclusão | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.