Skip to content

Commit 28da0cc

Browse files
julesvanriegithub-actions
andauthored
Set SSH default in gh auth command (#332)
* Set SSH default in gh auth command * setup guides generated --------- Co-authored-by: github-actions <github-actions@github.com>
1 parent d9bb7b2 commit 28da0cc

File tree

8 files changed

+64
-64
lines changed

8 files changed

+64
-64
lines changed

LINUX.es.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,27 +166,27 @@ CLI es una abreviación de [Command-line Interface](https://en.wikipedia.org/wik
166166

167167
En esta sección usaremos [GitHub CLI](https://cli.github.com/) para interactuar directamente con GitHub desde la terminal.
168168

169+
Usaremos la GitHub CLI (`gh`) para conectarnos a GitHub utilizando *SSH*, un protocolo para iniciar la sesión utilizando claves SSH en lugar de la famosa pareja nombre de usuario y contraseña.
170+
169171
Ya debería haberse instalado en tu computadora con los comandos que ejecutaste anteriormente.
170172

171173
Lo primero que hay que hacer para **iniciar sesión** es copiar y pegar el comando siguiente en tu terminal:
172174

173175
:warning: **NO edites el `email`**
174176

175177
```bash
176-
gh auth login -s 'user:email' -w
178+
gh auth login -s 'user:email' -w --git-protocol ssh
177179
```
178180

179-
gh le hará algunas preguntas:
180-
181-
`What is your preferred protocol for Git operations?` Con las flechas, elige `SSH` y presiona `Enter`. SSH es un protocolo para iniciar la sesión utilizando claves SSH en lugar de la famosa pareja nombre de usuario y contraseña.
181+
`gh` le hará algunas preguntas:
182182

183-
`Generate a new SSH key to add to your GitHub account?` Presiona `Enter` para pedirle a gh que genere las claves SSH por ti.
183+
- `Generate a new SSH key to add to your GitHub account?` Presiona `Enter` para pedirle a gh que genere las claves SSH por ti.
184184

185-
Si ya tienes claves SSH, verás en su lugar `Upload your SSH public key to your GitHub account?`Con las flechas, selecciona la ruta de tu archivo de clave pública y pulsa `Intro`.
185+
Si ya tienes claves SSH, verás en su lugar `Upload your SSH public key to your GitHub account?`Con las flechas, selecciona la ruta de tu archivo de clave pública y pulsa `Intro`.
186186

187-
`Enter a passphrase for your new SSH key (Optional)`. Pon algo que quieras y que recuerdes. Es una contraseña para proteger tu private key que está almacenada en tu disco duro. Luego presiona `Enter`.
187+
- `Enter a passphrase for your new SSH key (Optional)`. Pon algo que quieras y que recuerdes. Es una contraseña para proteger tu private key que está almacenada en tu disco duro. Luego presiona `Enter`.
188188

189-
`Title for your SSH key`. Puede dejarlo en la propuesta "GitHub CLI", presiona `Enter`.
189+
- `Title for your SSH key`. Puede dejarlo en la propuesta "GitHub CLI", presiona `Enter`.
190190

191191
Obtendrás el siguiente resultado:
192192

LINUX.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -192,25 +192,25 @@ In this section, we will use [GitHub CLI](https://cli.github.com/) to interact w
192192

193193
It should already be installed on your computer from the previous commands.
194194

195+
We will use the GitHub CLI (`gh`) to connect to GitHub using *SSH*, a protocol to log in using SSH keys instead of the well known username/password pair.
196+
195197
First in order to **login**, copy-paste the following command in your terminal:
196198

197199
:warning: **DO NOT edit the `email`**
198200

199201
```bash
200-
gh auth login -s 'user:email' -w
202+
gh auth login -s 'user:email' -w --git-protocol ssh
201203
```
202204

203-
gh will ask you few questions:
204-
205-
`What is your preferred protocol for Git operations?` With the arrows, choose `SSH` and press `Enter`. SSH is a protocol to log in using SSH keys instead of the well known username/password pair.
205+
`gh` will ask you few questions:
206206

207-
`Generate a new SSH key to add to your GitHub account?` Press `Enter` to ask gh to generate the SSH keys for you.
207+
- `Generate a new SSH key to add to your GitHub account?` Press `Enter` to ask gh to generate the SSH keys for you.
208208

209-
If you already have SSH keys, you will see instead `Upload your SSH public key to your GitHub account?` With the arrows, select your public key file path and press `Enter`.
209+
If you already have SSH keys, you will see instead `Upload your SSH public key to your GitHub account?` With the arrows, select your public key file path and press `Enter`.
210210

211-
`Enter a passphrase for your new SSH key (Optional)`. Type something you want and that you'll remember. It's a password to protect your private key stored on your hard drive. Then press `Enter`.
211+
- `Enter a passphrase for your new SSH key (Optional)`. Type something you want and that you'll remember. It's a password to protect your private key stored on your hard drive. Then press `Enter`.
212212

213-
`Title for your SSH key`. You can leave it at the proposed "GitHub CLI", press `Enter`.
213+
- `Title for your SSH key`. You can leave it at the proposed "GitHub CLI", press `Enter`.
214214

215215
You will then get the following output:
216216

VM.es.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -333,27 +333,27 @@ CLI es una abreviación de [Command-line Interface](https://en.wikipedia.org/wik
333333

334334
En esta sección usaremos [GitHub CLI](https://cli.github.com/) para interactuar directamente con GitHub desde la terminal.
335335

336+
Usaremos la GitHub CLI (`gh`) para conectarnos a GitHub utilizando *SSH*, un protocolo para iniciar la sesión utilizando claves SSH en lugar de la famosa pareja nombre de usuario y contraseña.
337+
336338
Ya debería haberse instalado en tu computadora con los comandos que ejecutaste anteriormente.
337339

338340
Lo primero que hay que hacer para **iniciar sesión** es copiar y pegar el comando siguiente en tu terminal:
339341

340342
:warning: **NO edites el `email`**
341343

342344
```bash
343-
gh auth login -s 'user:email' -w
345+
gh auth login -s 'user:email' -w --git-protocol ssh
344346
```
345347

346-
gh le hará algunas preguntas:
347-
348-
`What is your preferred protocol for Git operations?` Con las flechas, elige `SSH` y presiona `Enter`. SSH es un protocolo para iniciar la sesión utilizando claves SSH en lugar de la famosa pareja nombre de usuario y contraseña.
348+
`gh` le hará algunas preguntas:
349349

350-
`Generate a new SSH key to add to your GitHub account?` Presiona `Enter` para pedirle a gh que genere las claves SSH por ti.
350+
- `Generate a new SSH key to add to your GitHub account?` Presiona `Enter` para pedirle a gh que genere las claves SSH por ti.
351351

352-
Si ya tienes claves SSH, verás en su lugar `Upload your SSH public key to your GitHub account?`Con las flechas, selecciona la ruta de tu archivo de clave pública y pulsa `Intro`.
352+
Si ya tienes claves SSH, verás en su lugar `Upload your SSH public key to your GitHub account?`Con las flechas, selecciona la ruta de tu archivo de clave pública y pulsa `Intro`.
353353

354-
`Enter a passphrase for your new SSH key (Optional)`. Pon algo que quieras y que recuerdes. Es una contraseña para proteger tu private key que está almacenada en tu disco duro. Luego presiona `Enter`.
354+
- `Enter a passphrase for your new SSH key (Optional)`. Pon algo que quieras y que recuerdes. Es una contraseña para proteger tu private key que está almacenada en tu disco duro. Luego presiona `Enter`.
355355

356-
`Title for your SSH key`. Puede dejarlo en la propuesta "GitHub CLI", presiona `Enter`.
356+
- `Title for your SSH key`. Puede dejarlo en la propuesta "GitHub CLI", presiona `Enter`.
357357

358358
Obtendrás el siguiente resultado:
359359

VM.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -515,25 +515,25 @@ In this section, we will use [GitHub CLI](https://cli.github.com/) to interact w
515515

516516
It should already be installed on your computer from the previous commands.
517517

518+
We will use the GitHub CLI (`gh`) to connect to GitHub using *SSH*, a protocol to log in using SSH keys instead of the well known username/password pair.
519+
518520
First in order to **login**, copy-paste the following command in your terminal:
519521

520522
:warning: **DO NOT edit the `email`**
521523

522524
```bash
523-
gh auth login -s 'user:email' -w
525+
gh auth login -s 'user:email' -w --git-protocol ssh
524526
```
525527

526-
gh will ask you few questions:
527-
528-
`What is your preferred protocol for Git operations?` With the arrows, choose `SSH` and press `Enter`. SSH is a protocol to log in using SSH keys instead of the well known username/password pair.
528+
`gh` will ask you few questions:
529529

530-
`Generate a new SSH key to add to your GitHub account?` Press `Enter` to ask gh to generate the SSH keys for you.
530+
- `Generate a new SSH key to add to your GitHub account?` Press `Enter` to ask gh to generate the SSH keys for you.
531531

532-
If you already have SSH keys, you will see instead `Upload your SSH public key to your GitHub account?` With the arrows, select your public key file path and press `Enter`.
532+
If you already have SSH keys, you will see instead `Upload your SSH public key to your GitHub account?` With the arrows, select your public key file path and press `Enter`.
533533

534-
`Enter a passphrase for your new SSH key (Optional)`. Type something you want and that you'll remember. It's a password to protect your private key stored on your hard drive. Then press `Enter`.
534+
- `Enter a passphrase for your new SSH key (Optional)`. Type something you want and that you'll remember. It's a password to protect your private key stored on your hard drive. Then press `Enter`.
535535

536-
`Title for your SSH key`. You can leave it at the proposed "GitHub CLI", press `Enter`.
536+
- `Title for your SSH key`. You can leave it at the proposed "GitHub CLI", press `Enter`.
537537

538538
You will then get the following output:
539539

WINDOWS.es.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -644,27 +644,27 @@ CLI es una abreviación de [Command-line Interface](https://en.wikipedia.org/wik
644644

645645
En esta sección usaremos [GitHub CLI](https://cli.github.com/) para interactuar directamente con GitHub desde la terminal.
646646

647+
Usaremos la GitHub CLI (`gh`) para conectarnos a GitHub utilizando *SSH*, un protocolo para iniciar la sesión utilizando claves SSH en lugar de la famosa pareja nombre de usuario y contraseña.
648+
647649
Ya debería haberse instalado en tu computadora con los comandos que ejecutaste anteriormente.
648650

649651
Lo primero que hay que hacer para **iniciar sesión** es copiar y pegar el comando siguiente en tu terminal:
650652

651653
:warning: **NO edites el `email`**
652654

653655
```bash
654-
gh auth login -s 'user:email' -w
656+
gh auth login -s 'user:email' -w --git-protocol ssh
655657
```
656658

657-
gh le hará algunas preguntas:
658-
659-
`What is your preferred protocol for Git operations?` Con las flechas, elige `SSH` y presiona `Enter`. SSH es un protocolo para iniciar la sesión utilizando claves SSH en lugar de la famosa pareja nombre de usuario y contraseña.
659+
`gh` le hará algunas preguntas:
660660

661-
`Generate a new SSH key to add to your GitHub account?` Presiona `Enter` para pedirle a gh que genere las claves SSH por ti.
661+
- `Generate a new SSH key to add to your GitHub account?` Presiona `Enter` para pedirle a gh que genere las claves SSH por ti.
662662

663-
Si ya tienes claves SSH, verás en su lugar `Upload your SSH public key to your GitHub account?`Con las flechas, selecciona la ruta de tu archivo de clave pública y pulsa `Intro`.
663+
Si ya tienes claves SSH, verás en su lugar `Upload your SSH public key to your GitHub account?`Con las flechas, selecciona la ruta de tu archivo de clave pública y pulsa `Intro`.
664664

665-
`Enter a passphrase for your new SSH key (Optional)`. Pon algo que quieras y que recuerdes. Es una contraseña para proteger tu private key que está almacenada en tu disco duro. Luego presiona `Enter`.
665+
- `Enter a passphrase for your new SSH key (Optional)`. Pon algo que quieras y que recuerdes. Es una contraseña para proteger tu private key que está almacenada en tu disco duro. Luego presiona `Enter`.
666666

667-
`Title for your SSH key`. Puede dejarlo en la propuesta "GitHub CLI", presiona `Enter`.
667+
- `Title for your SSH key`. Puede dejarlo en la propuesta "GitHub CLI", presiona `Enter`.
668668

669669
Obtendrás el siguiente resultado:
670670

WINDOWS.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -660,25 +660,25 @@ In this section, we will use [GitHub CLI](https://cli.github.com/) to interact w
660660

661661
It should already be installed on your computer from the previous commands.
662662

663+
We will use the GitHub CLI (`gh`) to connect to GitHub using *SSH*, a protocol to log in using SSH keys instead of the well known username/password pair.
664+
663665
First in order to **login**, copy-paste the following command in your terminal:
664666

665667
:warning: **DO NOT edit the `email`**
666668

667669
```bash
668-
gh auth login -s 'user:email' -w
670+
gh auth login -s 'user:email' -w --git-protocol ssh
669671
```
670672

671-
gh will ask you few questions:
672-
673-
`What is your preferred protocol for Git operations?` With the arrows, choose `SSH` and press `Enter`. SSH is a protocol to log in using SSH keys instead of the well known username/password pair.
673+
`gh` will ask you few questions:
674674

675-
`Generate a new SSH key to add to your GitHub account?` Press `Enter` to ask gh to generate the SSH keys for you.
675+
- `Generate a new SSH key to add to your GitHub account?` Press `Enter` to ask gh to generate the SSH keys for you.
676676

677-
If you already have SSH keys, you will see instead `Upload your SSH public key to your GitHub account?` With the arrows, select your public key file path and press `Enter`.
677+
If you already have SSH keys, you will see instead `Upload your SSH public key to your GitHub account?` With the arrows, select your public key file path and press `Enter`.
678678

679-
`Enter a passphrase for your new SSH key (Optional)`. Type something you want and that you'll remember. It's a password to protect your private key stored on your hard drive. Then press `Enter`.
679+
- `Enter a passphrase for your new SSH key (Optional)`. Type something you want and that you'll remember. It's a password to protect your private key stored on your hard drive. Then press `Enter`.
680680

681-
`Title for your SSH key`. You can leave it at the proposed "GitHub CLI", press `Enter`.
681+
- `Title for your SSH key`. You can leave it at the proposed "GitHub CLI", press `Enter`.
682682

683683
You will then get the following output:
684684

macOS.es.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -253,27 +253,27 @@ CLI es una abreviación de [Command-line Interface](https://en.wikipedia.org/wik
253253

254254
En esta sección usaremos [GitHub CLI](https://cli.github.com/) para interactuar directamente con GitHub desde la terminal.
255255

256+
Usaremos la GitHub CLI (`gh`) para conectarnos a GitHub utilizando *SSH*, un protocolo para iniciar la sesión utilizando claves SSH en lugar de la famosa pareja nombre de usuario y contraseña.
257+
256258
Ya debería haberse instalado en tu computadora con los comandos que ejecutaste anteriormente.
257259

258260
Lo primero que hay que hacer para **iniciar sesión** es copiar y pegar el comando siguiente en tu terminal:
259261

260262
:warning: **NO edites el `email`**
261263

262264
```bash
263-
gh auth login -s 'user:email' -w
265+
gh auth login -s 'user:email' -w --git-protocol ssh
264266
```
265267

266-
gh le hará algunas preguntas:
267-
268-
`What is your preferred protocol for Git operations?` Con las flechas, elige `SSH` y presiona `Enter`. SSH es un protocolo para iniciar la sesión utilizando claves SSH en lugar de la famosa pareja nombre de usuario y contraseña.
268+
`gh` le hará algunas preguntas:
269269

270-
`Generate a new SSH key to add to your GitHub account?` Presiona `Enter` para pedirle a gh que genere las claves SSH por ti.
270+
- `Generate a new SSH key to add to your GitHub account?` Presiona `Enter` para pedirle a gh que genere las claves SSH por ti.
271271

272-
Si ya tienes claves SSH, verás en su lugar `Upload your SSH public key to your GitHub account?`Con las flechas, selecciona la ruta de tu archivo de clave pública y pulsa `Intro`.
272+
Si ya tienes claves SSH, verás en su lugar `Upload your SSH public key to your GitHub account?`Con las flechas, selecciona la ruta de tu archivo de clave pública y pulsa `Intro`.
273273

274-
`Enter a passphrase for your new SSH key (Optional)`. Pon algo que quieras y que recuerdes. Es una contraseña para proteger tu private key que está almacenada en tu disco duro. Luego presiona `Enter`.
274+
- `Enter a passphrase for your new SSH key (Optional)`. Pon algo que quieras y que recuerdes. Es una contraseña para proteger tu private key que está almacenada en tu disco duro. Luego presiona `Enter`.
275275

276-
`Title for your SSH key`. Puede dejarlo en la propuesta "GitHub CLI", presiona `Enter`.
276+
- `Title for your SSH key`. Puede dejarlo en la propuesta "GitHub CLI", presiona `Enter`.
277277

278278
Obtendrás el siguiente resultado:
279279

macOS.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -255,25 +255,25 @@ In this section, we will use [GitHub CLI](https://cli.github.com/) to interact w
255255

256256
It should already be installed on your computer from the previous commands.
257257

258+
We will use the GitHub CLI (`gh`) to connect to GitHub using *SSH*, a protocol to log in using SSH keys instead of the well known username/password pair.
259+
258260
First in order to **login**, copy-paste the following command in your terminal:
259261

260262
:warning: **DO NOT edit the `email`**
261263

262264
```bash
263-
gh auth login -s 'user:email' -w
265+
gh auth login -s 'user:email' -w --git-protocol ssh
264266
```
265267

266-
gh will ask you few questions:
267-
268-
`What is your preferred protocol for Git operations?` With the arrows, choose `SSH` and press `Enter`. SSH is a protocol to log in using SSH keys instead of the well known username/password pair.
268+
`gh` will ask you few questions:
269269

270-
`Generate a new SSH key to add to your GitHub account?` Press `Enter` to ask gh to generate the SSH keys for you.
270+
- `Generate a new SSH key to add to your GitHub account?` Press `Enter` to ask gh to generate the SSH keys for you.
271271

272-
If you already have SSH keys, you will see instead `Upload your SSH public key to your GitHub account?` With the arrows, select your public key file path and press `Enter`.
272+
If you already have SSH keys, you will see instead `Upload your SSH public key to your GitHub account?` With the arrows, select your public key file path and press `Enter`.
273273

274-
`Enter a passphrase for your new SSH key (Optional)`. Type something you want and that you'll remember. It's a password to protect your private key stored on your hard drive. Then press `Enter`.
274+
- `Enter a passphrase for your new SSH key (Optional)`. Type something you want and that you'll remember. It's a password to protect your private key stored on your hard drive. Then press `Enter`.
275275

276-
`Title for your SSH key`. You can leave it at the proposed "GitHub CLI", press `Enter`.
276+
- `Title for your SSH key`. You can leave it at the proposed "GitHub CLI", press `Enter`.
277277

278278
You will then get the following output:
279279

0 commit comments

Comments
 (0)